vendor/eac_cli/lib/eac_cli/definition/alternative.rb in avm-tools-0.92.0 vs vendor/eac_cli/lib/eac_cli/definition/alternative.rb in avm-tools-0.93.0

- old
+ new

@@ -8,18 +8,15 @@ class Definition class Alternative SUBCOMMAND_NAME_ARG = :subcommand SUBCOMMAND_ARGS_ARG = :subcommand_args - def arg_opt(short, long, description, option_options = {}) - options_set << ::EacCli::Definition::ArgumentOption.new( - short, long, description, option_options - ) + def arg_opt(*args) + options_set << ::EacCli::Definition::ArgumentOption.from_args(args) end - def bool_opt(short, long, description, option_options = {}) - options_set << ::EacCli::Definition::BooleanOption.new(short, long, description, - option_options) + def bool_opt(*args) + options_set << ::EacCli::Definition::BooleanOption.from_args(args) end def options options_set.to_a end