diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-08-19 15:58:34 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-08-19 15:58:34 -0700 |
| commit | 8fd36ba15b2673d0d9a230da88c7353013e44574 (patch) | |
| tree | da3ab723f712b1e67ab70b4aeee20ebee7b3ce31 /src/flake8/plugins | |
| parent | f265b2275b2d131df7af023f0c8b4835bc3b2575 (diff) | |
| download | flake8-8fd36ba15b2673d0d9a230da88c7353013e44574.tar.gz | |
Put plugin options into separate argparse groups
Diffstat (limited to 'src/flake8/plugins')
| -rw-r--r-- | src/flake8/plugins/manager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py index 1554aa2..b1d00a7 100644 --- a/src/flake8/plugins/manager.py +++ b/src/flake8/plugins/manager.py @@ -213,7 +213,8 @@ class Plugin(object): self.name, optmanager, ) - add_options(optmanager) + with optmanager.group(self.plugin_name): + add_options(optmanager) if self.off_by_default: self.disable(optmanager) |
