Added `be --verbose-version' option to print full version information.
authorW. Trevor King <wking@drexel.edu>
Tue, 15 Sep 2009 22:59:16 +0000 (18:59 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 15 Sep 2009 22:59:16 +0000 (18:59 -0400)
be

diff --git a/be b/be
index 1f7e4a3d8e62e3dc11adc248877d3c4ce8bf1bd4..feacfb4e831d799c457400ca4abeb0c7d45e43d8 100755 (executable)
--- 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)