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:
parent
7b0c8a29ed
commit
de0cc59a65
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user