docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
958 stars 254 forks source link

metrics: fix unexpected usage output shown on cli #2149

Closed crazy-max closed 2 years ago

crazy-max commented 2 years ago

What I did

Got a hard time to pinpoint this issue but finally found it comes from the cli proxy while parsing args with pflags for build metrics:

$ docker buildx inspect --help

Usage:  docker buildx inspect [NAME]

Inspect current builder instance

Options:
      --bootstrap        Ensure builder has booted before inspecting
      --builder string   Override the configured builder instance
Usage of buildx:
      --builder string

Now with flag set usage silenced:

$ docker buildx inspect --help

Usage:  docker buildx inspect [NAME]

Inspect current builder instance

Options:
      --bootstrap        Ensure builder has booted before inspecting
      --builder string   Override the configured builder instance

cc @tonistiigi

Related issue

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

crazy-max commented 2 years ago

Ok to merge this one @glours @mat007 @gtardif?