Add "nauta up <username>" to select a card manually

This commit is contained in:
Andy Teijelo Pérez 2017-10-11 09:31:06 -04:00
parent e289fc4e61
commit 12c722bc08

View file

@ -399,7 +399,7 @@ def main(args):
epilog=dedent("""\ epilog=dedent("""\
Subcommands: Subcommands:
up up [username]
down down
cards [-v] [-f] cards [-v] [-f]
cards add [username] cards add [username]
@ -441,6 +441,7 @@ def main(args):
up_parser = subparsers.add_parser('up') up_parser = subparsers.add_parser('up')
up_parser.set_defaults(func=up) up_parser.set_defaults(func=up)
up_parser.add_argument('username', nargs="?")
down_parser = subparsers.add_parser('down') down_parser = subparsers.add_parser('down')
down_parser.set_defaults(func=down) down_parser.set_defaults(func=down)