1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[cli] Changes fog --version short option to -v

Looking at a number of similar Ruby based tools, Bundler, Rubygems, Pry
and IRB all use lowercase v for the short option for `--version`

Ruby itself uses `-v` for verbose but without any further arguments
prints the version and exits.
This commit is contained in:
Paul Thornthwaite 2013-07-01 21:57:52 +01:00
parent df5feab0a5
commit b218ac6cd1

View file

@ -12,7 +12,7 @@ options = OptionParser.new do |opts|
Fog.credentials_path = file Fog.credentials_path = file
end end
opts.on_tail('-V', '--version', 'Prints the version') do opts.on_tail('-v', '--version', 'Prints the version') do
puts Fog::VERSION puts Fog::VERSION
exit exit
end end