Skip to content

Commit

Permalink
refactor: Rename some CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 14, 2022
1 parent 87a59cb commit 1323268
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/griffe/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def get_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(prog="griffe", add_help=False)
parser.add_argument(
"-A",
"--async-loader",
"--async",
action="store_true",
help="Whether to read files on disk asynchronously. "
"Very large projects with many files will be processed faster. "
"Small projects with a few files will not see any speed up.",
)
parser.add_argument(
"-a",
"--append-sys-path",
"-y",
"--sys-path",
action="store_true",
help="Whether to append sys.path to search paths specified with -s.",
)
Expand Down Expand Up @@ -144,6 +144,8 @@ def get_parser() -> argparse.ArgumentParser:
"-o",
"--output",
default=sys.stdout,
help="Output file. Supports templating to output each package in its own file, with {package}.",
)
parser.add_argument(
"-r",
"--resolve-aliases",
Expand Down Expand Up @@ -208,7 +210,7 @@ def main(args: list[str] | None = None) -> int: # noqa: WPS231
per_package_output = True

search = opts.search
if opts.append_sys_path:
if opts.sys_path:
search.extend(sys.path)

try:
Expand Down

0 comments on commit 1323268

Please sign in to comment.