diff options
author | Chris Ball <cjb@laptop.org> | 2009-06-25 13:44:27 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2009-06-25 13:44:27 -0400 |
commit | 34b2884112e3c3ca0cc0ac83df68c66f6b2729c4 (patch) | |
tree | 7a1f3589de72cf53cf33d815ac49ddd1fb2f5fd5 /be | |
parent | ae52bd5946df9c0d59be43824b20d33819891f93 (diff) | |
parent | 93402b914313e102aa56d5d59a2fead428ae8463 (diff) | |
download | bugseverywhere-34b2884112e3c3ca0cc0ac83df68c66f6b2729c4.tar.gz |
Merge be --version code from W. Trevor King.
Diffstat (limited to 'be')
-rwxr-xr-x | be | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -18,7 +18,7 @@ import sys -from libbe import cmdutil +from libbe import cmdutil, _version __doc__ == cmdutil.help() @@ -28,6 +28,8 @@ elif sys.argv[1] == '--complete': for command, module in cmdutil.iter_commands(): print command print '\n'.join(["--help","--complete","--options"]) +elif sys.argv[1] == '--version': + print _version.version_info["revision_id"] else: try: try: |