Skip to content

Commit

Permalink
clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Feb 21, 2025
1 parent dc1a95d commit 0711ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Options:
--color / --no-color Force enabling/disabling of color
--max-warnings COUNT Number of warnings to trigger nonzero exit code -
default: 5
--init Write initial configuration file and exit.
--init Write initial configuration file 'xrlint-
config.yaml' and exit.
--version Show the version and exit.
--help Show this message and exit.
Expand Down
3 changes: 2 additions & 1 deletion xrlint/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from xrlint.cli.constants import (
DEFAULT_MAX_WARNINGS,
DEFAULT_OUTPUT_FORMAT,
DEFAULT_CONFIG_FILE_YAML,
)
from xrlint.version import version

Expand Down Expand Up @@ -90,7 +91,7 @@
@click.option(
"--init",
"init_mode",
help="Write initial configuration file and exit.",
help=f"Write initial configuration file '{DEFAULT_CONFIG_FILE_YAML}' and exit.",
is_flag=True,
)
@click.argument("files", nargs=-1)
Expand Down

0 comments on commit 0711ccd

Please sign in to comment.