Skip to content

Commit 476e131

Browse files
docs: provide example of having a --option in [cli.alias] (#20539)
I have learnt only recently that you can provide a flag like `--flag` in `[cli.alias]` and I think it would be useful to have it in the docs among the examples. --------- Co-authored-by: Andreas Stenius <[email protected]>
1 parent e9d9941 commit 476e131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python/pants/option/alias.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class CliOptions(Subsystem):
4646
4747
[cli.alias]
4848
green = "fmt lint check"
49-
all-changed = "--changed-since=HEAD --changed-dependents=transitive"
49+
--all-changed = "--changed-since=HEAD --changed-dependents=transitive"
5050
5151
52-
This would allow you to run `{bin_name()} green all-changed`, which is shorthand for
52+
This would allow you to run `{bin_name()} green --all-changed`, which is shorthand for
5353
`{bin_name()} fmt lint check --changed-since=HEAD --changed-dependents=transitive`.
5454
5555
Notice: this option must be placed in a config file (e.g. `pants.toml` or `pantsrc`)

0 commit comments

Comments
 (0)