equal
deleted
inserted
replaced
178 usage(EX_MISSING_ARGS, _(u"Missing option name."), ctx.scmd) |
178 usage(EX_MISSING_ARGS, _(u"Missing option name."), ctx.scmd) |
179 |
179 |
180 noop = lambda option: option |
180 noop = lambda option: option |
181 opt_formater = { |
181 opt_formater = { |
182 'misc.dovecot_version': version_str, |
182 'misc.dovecot_version': version_str, |
183 'misc.quota_bytes': human_size, |
183 'domain.quota_bytes': human_size, |
184 } |
184 } |
185 |
185 |
186 option = ctx.args[2].lower() |
186 option = ctx.args[2].lower() |
187 w_std('%s = %s' % (option, opt_formater.get(option, |
187 w_std('%s = %s' % (option, opt_formater.get(option, |
188 noop)(ctx.cget(option)))) |
188 noop)(ctx.cget(option)))) |