1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

feature #1383: Use the first usage word for name if it is not defined

This commit is contained in:
Daniel Molina 2012-10-01 16:53:14 +02:00
parent 7b0c8a29ed
commit de0cc59a65

View File

@ -75,7 +75,8 @@ module CommandParser
# Defines the usage information of the command
# @param [String] str
def usage(str)
@usage=str
@usage = str
@name ||= @usage.split(' ').first
end
# Defines the version the command