aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-05 00:57:43 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-05 00:57:43 -0500
commit69300422c6825af80574545b11d7565aa8f38ee3 (patch)
tree8fdd4dc407166c4cd7fb39377bcc0f20edba805d
parent282d5cf934eec5c0ae02a01c345c38d0ad7c9fa7 (diff)
downloadbugseverywhere-69300422c6825af80574545b11d7565aa8f38ee3.tar.gz
Fix cmdutil.help() calls in be to use args not sys.argv.
sys.argv won't work if there are any options in the be call, e.g. be -d DIR diff
-rwxr-xr-xbe4
1 files changed, 2 insertions, 2 deletions
diff --git a/be b/be
index 8fe7dca..c5c372f 100755
--- a/be
+++ b/be
@@ -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:"