lib/newrelic-management/cli.rb
def configure(argv = ARGV)
      # => Parse CLI Configuration
      cli = Options.new
      cli.parse_options(argv)

      # => Parse JSON Config File (If Specified and Exists)
      json_config = Util.parse_json(cli.config[:config_file] || Config.config_file)

      # => Merge Configuration (CLI Wins)
      config = [json_config, cli.config].compact.reduce(:merge)

      # => Apply Configuration
      config.each { |k, v| Config.send("#{k}=", v) }
    end
def configure(argv = ARGV)
      # => Parse CLI Configuration
      cli = Options.new
      cli.parse_options(argv)

      # => Parse JSON Config File (If Specified and Exists)
      json_config = Util.parse_json(cli.config[:config_file] || Config.config_file)

      # => Merge Configuration (CLI Wins)
      config = [json_config, cli.config].compact.reduce(:merge)

      # => Apply Configuration
      config.each { |k, v| Config.send("#{k}=", v) }
    end
=> Configure the CLI