mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-27 14:03:40 +03:00
Fix oneacct help generation
This commit is contained in:
parent
1284b7aa18
commit
b7f336db5d
@ -619,9 +619,9 @@ module CommandParser
|
||||
command[:desc].split("\n").each { |l|
|
||||
printf cmd_format10, l
|
||||
puts
|
||||
}
|
||||
} if command[:desc]
|
||||
|
||||
unless command[:options].empty?
|
||||
unless !command[:options] || command[:options].empty?
|
||||
opts_str=command[:options].flatten.collect{|o|
|
||||
o[:name]
|
||||
}.join(', ')
|
||||
|
@ -38,7 +38,7 @@ cmd = CommandParser::CmdParser.new(ARGV) do
|
||||
version OpenNebulaHelper::ONE_VERSION
|
||||
|
||||
|
||||
option [AcctHelper::ACCT_OPTIONS + CommandParser::OPTIONS]
|
||||
option AcctHelper::ACCT_OPTIONS + CommandParser::OPTIONS
|
||||
|
||||
main do
|
||||
filter_flag = (options[:user] || VirtualMachinePool::INFO_ALL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user