From 3ddc2551c71eae177b6c71712c8aeedfbbb752e4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 8 Jan 2015 18:36:48 +1100 Subject: [PATCH] bam deps: disallow zero paths tp be passed --- bam/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bam/cli.py b/bam/cli.py index 108d6e4..2dacfd1 100755 --- a/bam/cli.py +++ b/bam/cli.py @@ -818,7 +818,7 @@ class bam_commands: print("]") else: for f_src, f_dst, f_dst_abs, f_status in status_walker(): - print(" %r -> (%r = %r) %s" % (f_src, f_dst, f_dst_abs, f_status)) + print(" %r -> (%r = %r) %s" % (f_src, f_dst, f_dst_abs, f_status))ia @staticmethod def pack( @@ -1109,7 +1109,7 @@ def create_argparse_deps(subparsers): help="List dependencies for file(s)", ) subparse.add_argument( - dest="paths", nargs="*", + dest="paths", nargs="+", help="Path(s) to operate on", ) subparse.add_argument( @@ -1122,7 +1122,7 @@ def create_argparse_deps(subparsers): subparse.set_defaults( func=lambda args: bam_commands.deps( - args.paths or ["."], args.recursive, + args.paths, args.recursive, use_json=args.json), )