We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There should be an option to ignore configuration files. Do something sensible if it occurs in a configuration file.
The text was updated successfully, but these errors were encountered:
I would suggest to use something similar to #632, but parsing first sys.argv and only parsing the config files if --ignore-config is not given:
default_settings = {'template': '%(id)s.%(ext)s'} settings = default_settings.copy() cmdargs=parseArgs(sys.argv) if not ignore_config in cmdargs: args = readArgs('/etc/youtube-dl.conf') settings.update(parseArgs(args, errmsg='invalid system configuration')) args = readArgs('~/.config/youtube-dl.conf') settings.update(parseArgs(args, errmsg='invalid user configuration')) settings.update(cmdargs)
Sorry, something went wrong.
588128d
No branches or pull requests
There should be an option to ignore configuration files. Do something sensible if it occurs in a configuration file.
The text was updated successfully, but these errors were encountered: