lib/autoproj/cli/envsh.rb in autoproj-2.0.3 vs lib/autoproj/cli/envsh.rb in autoproj-2.1.0.rc1

- old
+ new

@@ -5,16 +5,14 @@ def validate_options(_unused, options = Hash.new) _, options = super(_unused, options) options end - def run(options = Hash.new) + def run(**options) initialize_and_load + shell_helpers = options.fetch(:shell_helpers, ws.config.shell_helpers?) finalize_setup(Array.new) - - options = Kernel.validate_options options, - shell_helpers: ws.config.shell_helpers? - ws.export_env_sh(shell_helpers: options[:shell_helpers]) + export_env_sh(shell_helpers: shell_helpers) end end end end