Skip to content

--no-public-ip / --allow-missing-endpoints help shows a bogus "spawn connect" value name (backticks in the usage string) #1441

Closed

Description

@scttfrdmn

In v0.151.0, spawn launch --help prints:

      --allow-missing-endpoints spawn connect   With --no-public-ip: launch even when ...
      --no-public-ip spawn connect              Launch with private IPs only: ...

These are bool flags. Cobra/pflag's UnquoteUsage takes the first back-quoted word in a flag's usage string as its value placeholder, so the spawn connect in the description turned into a fake argument.

Fix: drop the backticks from those two usage strings (or use plain quotes), regenerate docs-gen, and add a gate: no bool flag's usage contains a back-quoted span, checked by walking every command's flags via pflag.UnquoteUsage and asserting the name is empty for bool flags. Other flags may have the same problem; the gate will find them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions