lib/ig_markets/cli/config_file.rb
# Inserts the arguments specified in this config file into the passed arguments array.
#
# @param [Array<String>] argv The array of command-line arguments to alter.
Inserts the arguments specified in this config file into the passed arguments array.
Inserts the arguments specified in this config file into the passed arguments array .
def prepend_profile_arguments_to_argv(argv)
        profile = selected_profile argv
        insert_index = argv.index do |argument|
          argument[0] == '-'
        end || -1
        argv.insert insert_index, *@profiles.fetch(profile, [])
      end
def prepend_profile_arguments_to_argv ( argv ) profile = selected_profile argv insert_index = argv . index do | argument | argument [ 0 ] == '-' end || - 1 argv . insert insert_index , * @profiles . fetch ( profile , [ ] ) end
Inserts the arguments specified in this config file into the passed arguments array.
Inserts the arguments specified in this config file into the passed arguments array .
argv
argv The array of command-line arguments to alter.
argv The array of command - line arguments to alter .