about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-11-17 09:45:02 +0000
committerEric Wong <normalperson@yhbt.net>2011-11-17 09:45:02 +0000
commit31e37c1588c7413fb1d6e53f741a21542a20c8b2 (patch)
treefe38982d9fb5cdb57a6ffbd8ee7c9b97b572d6a0
parent562e8b1a1e80e92f0b38891f5516efa221a1a6ce (diff)
downloadmogilefs-client-31e37c1588c7413fb1d6e53f741a21542a20c8b2.tar.gz
It's sometimes handy to know which version we're running
-rwxr-xr-xbin/mog1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/mog b/bin/mog
index 250d9b6..c473cbd 100755
--- a/bin/mog
+++ b/bin/mog
@@ -62,6 +62,7 @@ ARGV.options do |x|
   x.on('--chunk', "chunk uploads (`tee' command)") { chunk = true }
   x.separator ''
   x.on('--help', 'Show this help message.') { puts x; exit }
+  x.on('--version', 'Show --version') { puts "#$0 #{MogileFS::VERSION}"; exit }
   x.parse!
 end