diff options
Diffstat (limited to 'src/flake8/main/options.py')
-rw-r--r-- | src/flake8/main/options.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py index c35dbc6..bc2464c 100644 --- a/src/flake8/main/options.py +++ b/src/flake8/main/options.py @@ -59,6 +59,23 @@ def register_preliminary_options(parser: argparse.ArgumentParser) -> None: help="Ignore all configuration files.", ) + add_argument( + "--allowed-plugins", + default=None, + # parse_from_config=True, + # comma_separated_list=True, + help="Which plugins are allowed to run from the environment", + ) + + add_argument( + "--required-plugins", + default=None, + # parse_from_config=True, + # comma_separated_list=True, + help="Which plugins are required for linting. Exits if not all are " + "present.", + ) + class JobsArgument: """Type callback for the --jobs argument.""" |