lib/gli/app_support.rb in gli-2.20.1 vs lib/gli/app_support.rb in gli-2.21.0
- old
+ new
@@ -13,10 +13,11 @@
# Reset the GLI module internal data structures; mostly useful for testing
def reset # :nodoc:
switches.clear
flags.clear
@commands = nil
+ @command_missing_block = nil
@commands_declaration_order = []
@flags_declaration_order = []
@switches_declaration_order = []
@version = nil
@config_file = nil
@@ -70,10 +71,11 @@
switches,
accepts,
:default_command => @default_command,
:autocomplete => autocomplete,
:subcommand_option_handling_strategy => subcommand_option_handling_strategy,
- :argument_handling_strategy => argument_handling_strategy)
+ :argument_handling_strategy => argument_handling_strategy,
+ :command_missing_block => @command_missing_block)
parsing_result = gli_option_parser.parse_options(args)
parsing_result.convert_to_openstruct! if @use_openstruct
the_command = parsing_result.command