aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-09-15 18:59:16 -0400
committerW. Trevor King <wking@drexel.edu>2009-09-15 18:59:16 -0400
commit5d03e60a2a12074e8d2cfb705d47f40a45cdf730 (patch)
tree279caf4666ef86a0368222e13f86b8de0d903b38
parent0510a9773d213732892dd6a0a8644a252d95f4b5 (diff)
downloadbugseverywhere-5d03e60a2a12074e8d2cfb705d47f40a45cdf730.tar.gz
Added `be --verbose-version' option to print full version information.
-rwxr-xr-xbe6
1 files changed, 4 insertions, 2 deletions
diff --git a/be b/be
index 1f7e4a3..feacfb4 100755
--- a/be
+++ b/be
@@ -31,6 +31,8 @@ parser = cmdutil.CmdOptionParser(usage)
parser.command = "be"
parser.add_option("--version", action="store_true", dest="version",
help="Print version string and exit.")
+parser.add_option("--verbose-version", action="store_true", dest="verbose_version",
+ help="Print verbose version information and exit.")
parser.add_option("-d", "--dir", dest="dir", metavar="DIR",
help="Run this command from DIR instead of the current directory.")
@@ -50,8 +52,8 @@ except cmdutil.GetCompletions, e:
print '\n'.join(e.completions)
sys.exit(0)
-if options.version == True:
- print version.version()
+if options.version == True or options.verbose_version == True:
+ print version.version(verbose=options.verbose_version)
sys.exit(0)
if options.dir != None:
os.chdir(options.dir)