1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-22 22:47:55 +01:00

Use snake_case instead of camelCase

This commit is contained in:
Philipp Hagemeister 2015-02-10 01:36:38 +01:00
parent 753fad4adc
commit c06a9fa34f

View File

@ -734,22 +734,22 @@ def parseOpts(overrideArguments=None):
if opts.verbose: if opts.verbose:
write_string('[debug] Override config: ' + repr(overrideArguments) + '\n') write_string('[debug] Override config: ' + repr(overrideArguments) + '\n')
else: else:
commandLineConf = sys.argv[1:] command_line_conf = sys.argv[1:]
if '--ignore-config' in commandLineConf: if '--ignore-config' in command_line_conf:
systemConf = [] system_conf = []
userConf = [] user_conf = []
else: else:
systemConf = _readOptions('/etc/youtube-dl.conf') system_conf = _readOptions('/etc/youtube-dl.conf')
if '--ignore-config' in systemConf: if '--ignore-config' in system_conf:
userConf = [] user_conf = []
else: else:
userConf = _readUserConf() user_conf = _readUserConf()
argv = systemConf + userConf + commandLineConf argv = system_conf + user_conf + command_line_conf
opts, args = parser.parse_args(argv) opts, args = parser.parse_args(argv)
if opts.verbose: if opts.verbose:
write_string('[debug] System config: ' + repr(_hide_login_info(systemConf)) + '\n') write_string('[debug] System config: ' + repr(_hide_login_info(system_conf)) + '\n')
write_string('[debug] User config: ' + repr(_hide_login_info(userConf)) + '\n') write_string('[debug] User config: ' + repr(_hide_login_info(user_conf)) + '\n')
write_string('[debug] Command-line args: ' + repr(_hide_login_info(commandLineConf)) + '\n') write_string('[debug] Command-line args: ' + repr(_hide_login_info(command_line_conf)) + '\n')
return parser, opts, args return parser, opts, args