Skip to content

Commit bb4c06d

Browse files
committed
Fixed incorrect doc string
1 parent b16ea47 commit bb4c06d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/qq_lib/core/click_format.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ class GlobDirectoryMixin:
169169

170170
def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
171171
"""
172-
Rewrite -d/--directory tokens to support multiple values and globs.
172+
Rewrite -d/--dir tokens to support multiple values and globs.
173173
174-
Greedily consumes all non-flag tokens following a -d/--directory flag,
174+
Greedily consumes all non-flag tokens following a -d/--dir flag,
175175
glob-expands each one relative to its own parent directory, and emits
176176
one -d <path> pair per expanded result.
177177
@@ -192,7 +192,7 @@ def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
192192
pattern = args[i]
193193
p = Path(pattern)
194194
if not p.name:
195-
# pattern is a bare directory (e.g. "." or "/some/dir/") no glob needed
195+
# pattern is a bare directory (e.g. "." or "/some/dir/") - no glob needed
196196
rewritten.extend(["-d", pattern])
197197
else:
198198
expanded = sorted(p.parent.glob(p.name))
@@ -209,6 +209,6 @@ def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
209209

210210

211211
class QQOperatorCommand(GlobDirectoryMixin, GNUHelpColorsCommand):
212-
"""GNUHelpColorsCommand with glob-expanding -d/--directory support."""
212+
"""GNUHelpColorsCommand with glob-expanding -d/--dir support."""
213213

214214
pass

0 commit comments

Comments
 (0)