Change adduser arguments from positional to --keyword style.
authorManuel Urbano Santos <mu@member.fsf.org>
Sat, 3 Dec 2011 13:29:28 +0000 (14:29 +0100)
committerManuel Urbano Santos <mu@member.fsf.org>
Sat, 3 Dec 2011 13:29:28 +0000 (14:29 +0100)
mediagoblin/gmg_commands/users.py

index 4c4b0c1b2ce45e1652c66fb0be796ffd301a1657..a4d85aa4f21399237103a277a49fb3939c8f7f2a 100644 (file)
@@ -21,14 +21,14 @@ from mediagoblin import mg_globals
 
 def adduser_parser_setup(subparser):
     subparser.add_argument(
-        'username',
+        '--username','-u',
         help="Username used to login")
     subparser.add_argument(
-        'password',
-        help="Your supersecret word to login")
+        '--password','-p',
+        help="Your supersecret word to login, beware of storing it in bash history")
     subparser.add_argument(
-        'email',
-        help="Email to recieve notifications")
+        '--email','-e',
+        help="Email to receive notifications")
 
 
 def adduser(args):