Skip to content

Commit f2094d9

Browse files
codespell_lib/_codespell.py: read additional args from file with with @<path>.
1 parent 075d076 commit f2094d9

File tree

2 files changed

+4
-553
lines changed

2 files changed

+4
-553
lines changed

codespell_lib/_codespell.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,10 @@ def _supports_ansi_colors() -> bool:
388388
def parse_options(
389389
args: Sequence[str],
390390
) -> tuple[argparse.Namespace, argparse.ArgumentParser, list[str]]:
391-
parser = argparse.ArgumentParser(formatter_class=NewlineHelpFormatter)
391+
parser = argparse.ArgumentParser(
392+
formatter_class=NewlineHelpFormatter,
393+
fromfile_prefix_chars='@',
394+
)
392395

393396
parser.set_defaults(colors=_supports_ansi_colors())
394397
parser.add_argument("--version", action="version", version=VERSION)

0 commit comments

Comments
 (0)