aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-25 13:31:31 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-25 13:31:31 -0400
commitfc9c1d719629858fcaa077ad5661bf414864220a (patch)
tree53054ea6f4279bef6049ab9194f396609ce06790 /be
parent586a426cedc62893d857f54b9b3e588289f78f0c (diff)
downloadbugseverywhere-fc9c1d719629858fcaa077ad5661bf414864220a.tar.gz
Added auto-generated version info. (be --version)
Diffstat (limited to 'be')
-rwxr-xr-xbe4
1 files changed, 3 insertions, 1 deletions
diff --git a/be b/be
index 35dab69..fbe964f 100755
--- a/be
+++ b/be
@@ -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: