Skip to content

Commit

Permalink
ISSUE 1533: Fix --config argument description
Browse files Browse the repository at this point in the history
Change --config argument description to "Read configuration from FILE."
Reason: It is unclear  "--help" view for "--config" argument which looks like:
"--config FILE                   Read configuration from PATH.". It is unclear because we pass "FILE" as argument value, but the configuration will be read from the "PATH".
The "--config FILE                   Read configuration from FILE." description is more clear.
  • Loading branch information
mooksel authored and Olexii Podolian committed Jul 7, 2020
1 parent 11f130b commit 94a16db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Options:
--exclude=.
--version Show the version and exit.
--config FILE Read configuration from PATH.
--config FILE Read configuration from FILE.
-h, --help Show this message and exit.
```

Expand Down
2 changes: 1 addition & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def target_version_option_callback(
),
is_eager=True,
callback=read_pyproject_toml,
help="Read configuration from PATH.",
help="Read configuration from FILE.",
)
@click.pass_context
def main(
Expand Down

0 comments on commit 94a16db

Please sign in to comment.