diff options
-rwxr-xr-x | be | 4 | ||||
-rw-r--r-- | becommands/list.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -64,7 +64,7 @@ try: raise cmdutil.UsageError, "must supply a command" sys.exit(cmdutil.execute(args[0], args[1:])) except cmdutil.GetHelp: - print cmdutil.help(sys.argv[1]) + print cmdutil.help(args[0]) sys.exit(0) except cmdutil.GetCompletions, e: print '\n'.join(e.completions) @@ -78,7 +78,7 @@ except cmdutil.UsageError, e: print cmdutil.help(parser=parser) else: print "\nArgs:", args - print cmdutil.help(sys.argv[1]) + print cmdutil.help(args[0]) sys.exit(1) except cmdutil.UserError, e: print "ERROR:" diff --git a/becommands/list.py b/becommands/list.py index 4711789..2749228 100644 --- a/becommands/list.py +++ b/becommands/list.py @@ -196,7 +196,7 @@ def get_parser(): long = "--%s" % s[1] help = s[2] parser.add_option(short, long, action="store_true", - dest=attr, help=help) + dest=attr, help=help, default=False) return parser |