lib/autoproj/cli/main.rb in autoproj-2.12.1 vs lib/autoproj/cli/main.rb in autoproj-2.13.0

- old
+ new

@@ -132,12 +132,13 @@ if options.has_key?('local') options[:only_local] = options.delete('local') end cli = CLI.const_get(classname).new begin - run_args = cli.validate_options(args, options.merge(extra_options)) - cli.run(*run_args) + *run_args, kw = cli.validate_options(args, options.merge(extra_options)) + kw = (kw || {}).transform_keys(&:to_sym) + cli.run(*run_args, **kw) ensure cli.notify_env_sh_updated if cli.respond_to?(:notify_env_sh_updated) end end end @@ -226,9 +227,11 @@ desc: 'maximum number of parallel jobs' option :mainline, type: :string, desc: "compare to the given baseline. if 'true', the comparison will ignore any override, otherwise it will take into account overrides only up to the given package set" option :auto_exclude, type: :boolean, desc: 'if true, packages that fail to import will be excluded from the build' + option :ask, type: :boolean, default: false, + desc: 'ask whether each package should or should not be updated' def update(*packages) report_options = Hash[silent: false, on_package_failures: default_report_on_package_failures] if options[:auto_exclude] report_options[:on_package_failures] = :report end