Skip to content

Commit 1323268

Browse files
committed
refactor: Rename some CLI options
1 parent 87a59cb commit 1323268

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/griffe/cli.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ def get_parser() -> argparse.ArgumentParser:
8585
parser = argparse.ArgumentParser(prog="griffe", add_help=False)
8686
parser.add_argument(
8787
"-A",
88-
"--async-loader",
88+
"--async",
8989
action="store_true",
9090
help="Whether to read files on disk asynchronously. "
9191
"Very large projects with many files will be processed faster. "
9292
"Small projects with a few files will not see any speed up.",
9393
)
9494
parser.add_argument(
95-
"-a",
96-
"--append-sys-path",
95+
"-y",
96+
"--sys-path",
9797
action="store_true",
9898
help="Whether to append sys.path to search paths specified with -s.",
9999
)
@@ -144,6 +144,8 @@ def get_parser() -> argparse.ArgumentParser:
144144
"-o",
145145
"--output",
146146
default=sys.stdout,
147+
help="Output file. Supports templating to output each package in its own file, with {package}.",
148+
)
147149
parser.add_argument(
148150
"-r",
149151
"--resolve-aliases",
@@ -208,7 +210,7 @@ def main(args: list[str] | None = None) -> int: # noqa: WPS231
208210
per_package_output = True
209211

210212
search = opts.search
211-
if opts.append_sys_path:
213+
if opts.sys_path:
212214
search.extend(sys.path)
213215

214216
try:

0 commit comments

Comments
 (0)