diff --git a/src/cli/command_parser.rb b/src/cli/command_parser.rb index 9d7b4222cd..3f34026087 100644 --- a/src/cli/command_parser.rb +++ b/src/cli/command_parser.rb @@ -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