lib/cmdparse.rb in cmdparse-3.0.4 vs lib/cmdparse.rb in cmdparse-3.0.5

- old
+ new

@@ -1,9 +1,9 @@ # #-- # cmdparse: advanced command line parser supporting commands -# Copyright (C) 2004-2015 Thomas Leitner +# Copyright (C) 2004-2020 Thomas Leitner # # This file is part of cmdparse which is licensed under the MIT. #++ # @@ -45,11 +45,11 @@ # # See CmdParse::CommandParser and CmdParse::Command for the two important classes. module CmdParse # The version of this cmdparse implemention - VERSION = '3.0.4'.freeze + VERSION = '3.0.5'.freeze # Base class for all cmdparse errors. class ParseError < StandardError @@ -839,11 +839,11 @@ end # Adds a top level command. # # See Command#add_command for detailed invocation information. - def add_command(*args, &block) - @main_command.add_command(*args, &block) + def add_command(*args, **kws, &block) + @main_command.add_command(*args, **kws, &block) end # Parses the command line arguments. # # If a block is given, the current hierarchy level and the name of the current command is