mirror of
https://github.com/docker/cli.git
synced 2026-11-14 00:33:51 -04:00
docker --cloud build rejected every BuildKit-only flag (--secret, --ssh, --push, --output, ...) because cloudHelpRequest parsed remaining args against the legacy build command's flag set before processAliases rewrites build into a buildx invocation. Treat build/bake/builder/image build the same as plugin commands: only recognize --help/-h immediately after the resolved command path instead of validating flags. Fixes #7350 Signed-off-by: Nick Sieger <nick@nicksieger.com>