1
0
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:
Javi Fontan 2012-09-21 12:56:43 +02:00
parent 1284b7aa18
commit b7f336db5d
2 changed files with 3 additions and 3 deletions

View File

@ -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(', ')

View File

@ -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)