Skip to content

Commit 94a3898

Browse files
committed
Move --max-depth option to option group "Filtering and Scope"
1 parent 85722e6 commit 94a3898

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

doc/additional_tools/pyreverse/configuration.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ Filtering and Scope
5858
**Default:** ``PUB_ONLY``
5959

6060

61+
--max-depth
62+
-----------
63+
*Maximum depth in package/module hierarchy to display. A depth of 0 shows only top-level packages, 1 shows one level of subpackages, etc. If not specified, all packages/modules are shown.*
64+
65+
**Default:** ``None``
66+
67+
6168
--show-ancestors
6269
----------------
6370
*Show <ancestor> generations of ancestor classes not in <projects>.*
@@ -115,13 +122,6 @@ Display Options
115122
**Default:** ``2``
116123

117124

118-
--max-depth
119-
-----------
120-
*Maximum depth in package/module hierarchy to display. A depth of 0 shows only top-level packages, 1 shows one level of subpackages, etc. If not specified, all packages/modules are shown.*
121-
122-
**Default:** ``None``
123-
124-
125125
--module-names
126126
--------------
127127
*Include module name in the representation of classes.*

pylint/pyreverse/main.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,22 @@
151151
"help": "Include standard library objects in representation of classes.",
152152
},
153153
),
154+
(
155+
"max-depth",
156+
{
157+
"dest": "max_depth",
158+
"action": "store",
159+
"default": None,
160+
"metavar": "<depth>",
161+
"type": "int",
162+
"group": OPTIONS_GROUPS["FILTERING"],
163+
"help": (
164+
"Maximum depth in package/module hierarchy to display. A depth of 0 shows only "
165+
"top-level packages, 1 shows one level of subpackages, etc. If not specified, "
166+
"all packages/modules are shown."
167+
),
168+
},
169+
),
154170
# Display Options
155171
(
156172
"module-names",
@@ -192,22 +208,6 @@
192208
"help": "Use colored output. Classes/modules of the same package get the same color.",
193209
},
194210
),
195-
(
196-
"max-depth",
197-
{
198-
"dest": "max_depth",
199-
"action": "store",
200-
"default": None,
201-
"metavar": "<depth>",
202-
"type": "int",
203-
"group": OPTIONS_GROUPS["DISPLAY"],
204-
"help": (
205-
"Maximum depth in package/module hierarchy to display. A depth of 0 shows only "
206-
"top-level packages, 1 shows one level of subpackages, etc. If not specified, "
207-
"all packages/modules are shown."
208-
),
209-
},
210-
),
211211
(
212212
"max-color-depth",
213213
{

0 commit comments

Comments
 (0)