Add --config option flag

This commit is contained in:
Ian Cordasco 2016-01-24 22:13:06 -06:00
parent 551bce11a3
commit 3a490971b2

View file

@ -127,11 +127,6 @@ def register_default_options(option_manager):
# Config file options
add_option(
'--isolated', default=False, action='store_true',
help='Ignore all found configuration files.',
)
add_option(
'--append-config', action='append',
help='Provide extra config files to parse in addition to the files '
@ -140,6 +135,18 @@ def register_default_options(option_manager):
'provide the same option.',
)
add_option(
'--config', default=None,
help='Path to the config file that will be the authoritative config '
'source. This will cause Flake8 to ignore all other '
'configuration files.'
)
add_option(
'--isolated', default=False, action='store_true',
help='Ignore all found configuration files.',
)
def main(argv=None):
"""Main entry-point for the flake8 command-line tool."""