aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2009-10-05 23:15:39 -0400
committerChris Ball <cjb@laptop.org>2009-10-05 23:15:39 -0400
commitb6a50c703369467132876f21efa8e4ffc672afae (patch)
tree905a9ae34efa2bce47d754893093b016d18d0162 /be
parent6a639574fa95e50f82fa3052e5524b961295a7ab (diff)
parente35ccf95ea89b6e622202caae30d3b8cca3f2473 (diff)
downloadbugseverywhere-b6a50c703369467132876f21efa8e4ffc672afae.tar.gz
Large merge from W. Trevor King, including Gianluca's HTML export.
Diffstat (limited to 'be')
-rwxr-xr-xbe8
1 files changed, 5 insertions, 3 deletions
diff --git a/be b/be
index 36deaba..feacfb4 100755
--- a/be
+++ b/be
@@ -21,7 +21,7 @@
import os
import sys
-from libbe import cmdutil, _version
+from libbe import cmdutil, version
__doc__ = cmdutil.help()
@@ -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_info["revision_id"]
+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)