From e4ae1e6dd2c018df3a2f31bf2757cae8b059c8bc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Nov 2014 16:15:09 +0100 Subject: [PATCH] support default no args as `.` --- client/cli/bam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cli/bam.py b/client/cli/bam.py index 20ad2ca..932bd9c 100755 --- a/client/cli/bam.py +++ b/client/cli/bam.py @@ -424,7 +424,7 @@ def create_argparse_commit(subparsers): help="Commit message", ) subparse.add_argument( - "paths", nargs="+", help="paths to commit", + "paths", nargs="*", help="paths to commit", ) subparse.set_defaults(func=subcommand_commit_cb) @@ -469,7 +469,7 @@ def create_argparse_list(subparsers): help="", ) subparse.add_argument( - "paths", nargs="+", help="Path(s) to operate on", + "paths", nargs="*", help="Path(s) to operate on", ) subparse.set_defaults(func=subcommand_list_cb) @@ -480,7 +480,7 @@ def create_argparse_deps(subparsers): help="", ) subparse.add_argument( - "paths", nargs="+", help="Path(s) to operate on", + "paths", nargs="*", help="Path(s) to operate on", ) subparse.add_argument( "-r", "--recursive", dest="recursive", action='store_true',