mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Added --version option to oneauth command
Gets the version and copyright string from CommandParse class so it only needs to be changed there
This commit is contained in:
parent
0f1da0b9cd
commit
86964ac730
@ -38,6 +38,7 @@ require 'sequel'
|
||||
require 'quota'
|
||||
require 'ssh_auth'
|
||||
require 'client_utilities'
|
||||
require 'command_parse'
|
||||
|
||||
|
||||
COMMANDS_HELP=<<-EOT
|
||||
@ -129,6 +130,9 @@ when "help"
|
||||
print_help
|
||||
exit 0
|
||||
|
||||
when "--version"
|
||||
puts CommandParse::ONE_VERSION
|
||||
|
||||
else
|
||||
print_help
|
||||
exit -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user