mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Add --config option flag
This commit is contained in:
parent
551bce11a3
commit
3a490971b2
1 changed files with 12 additions and 5 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue