VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 417 8209da83e256
parent 414 ae1a8428298c
child 418 542a4d23a9f0
equal deleted inserted replaced
416:f32b323fd347 417:8209da83e256
   341 
   341 
   342 
   342 
   343 def get_user(ctx):
   343 def get_user(ctx):
   344     """get the address of the user with the given UID"""
   344     """get the address of the user with the given UID"""
   345     if ctx.argc < 3:
   345     if ctx.argc < 3:
   346         usage(EX_MISSING_ARGS, _(u'Missing userid.'), ctx.scmd)
   346         usage(EX_MISSING_ARGS, _(u'Missing UID.'), ctx.scmd)
   347     _print_info(ctx, ctx.hdlr.user_by_uid(ctx.args[2]), _(u'Account'))
   347     _print_info(ctx, ctx.hdlr.user_by_uid(ctx.args[2]), _(u'Account'))
   348 
   348 
   349 
   349 
   350 def help_(ctx):
   350 def help_(ctx):
   351     """print help messages."""
   351     """print help messages."""