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:
parent
df5feab0a5
commit
b218ac6cd1
1 changed files with 1 additions and 1 deletions
2
bin/fog
2
bin/fog
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue