lib/ig_markets/cli/config_file.rb
# Searches the passed arguments list for the name of the profile to use (specified by the `--profile` argument).
Searches the passed arguments list for the name of the profile to use (specified by the `--profile` argument).
Searches the passed arguments list for the name of the profile to use ( specified by the ` -- profile ` argument ) .
def selected_profile(argv)
        profile_index = argv.index '--profile'
        if profile_index
          argv.delete_at profile_index
          argv.delete_at profile_index
        else
          'default'
        end
      end
def selected_profile ( argv ) profile_index = argv . index '--profile' if profile_index argv . delete_at profile_index argv . delete_at profile_index else 'default' end end
Searches the passed arguments list for the name of the profile to use (specified by the `--profile` argument).
Searches the passed arguments list for the name of the profile to use ( specified by the ` -- profile ` argument ) .
argv