lib/sym/app/cli.rb in sym-2.2.0 vs lib/sym/app/cli.rb in sym-2.2.1

- old
+ new

@@ -59,11 +59,14 @@ def_delegators :@application, :command attr_accessor :opts, :application, :outputs, :output_proc def initialize(argv_original) + env_args = ENV[ENV_ARGS_VARIABLE_NAME] begin - argv = argv_original.dup + argv = argv_original.dup + argv << env_args.split(' ') if env_args && !(argv.include?('-M') or argv.include?('--no-environment')) + argv.flatten! dict = argv.delete('--dictionary') self.opts = parse(argv) command_dictionary if dict rescue StandardError => e error exception: e