buildx/docs
Jonathan A. Sternberg ef4a165e48
commands: add an alias for --check to be the same as --call=check
This adds an alias for `--check` that causes it to behave the same as
`--call=check`. This is done using `BoolFunc` to call a function when
the option is seen and to set it to the correct value. This should allow
command line flags like `--check --call=targets` to work correctly (even
though they conflict) by making it so the first invocation sets the
print function to `check` and the second overwrites the first. This is
the expected behavior for these types of boolean flags.

`BoolFunc` itself is part of the standard library flags package, but
never seems to have made it into pflag possibly because it was added in
go 1.21.

https://pkg.go.dev/flag#FlagSet.BoolFunc

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-06-03 13:25:21 -05:00
..
reference commands: add an alias for --check to be the same as --call=check 2024-06-03 13:25:21 -05:00
bake-reference.md docs: move Bake file reference title to front matter 2024-05-13 18:15:17 +02:00
debugging.md docs: remove stub files and update links 2024-04-23 13:39:56 +02:00
generate.go Mark experimental flags in `--help` 2024-01-13 19:53:56 +09:00