Skip to content

launch --help: --name and --fsx-lifecycle show a backticked command as their placeholder #1520

Closed

Description

@scttfrdmn

Cobra treats backtick-quoted text in a flag's usage string as the flag's placeholder name (pflag.UnquoteUsage). So spawn launch --help prints:

--name spawn launch <name>     ...
--fsx-lifecycle spawn terminate ...

They should read --name string and --fsx-lifecycle string.

  • Source: cmd/launch_flags.go:355 (--name) and :434 (--fsx-lifecycle). Both put a command in backticks inside the usage.
  • Found: while fixing the same bug on --bootstrap-egress in feat(launch): --bootstrap-egress proxy, find-or-create of the per-VPC egress proxy (#1515 phase 3) #1518.
  • Suggested fix: drop the backticks, or use plain quotes. Then add a gate that walks every command's flags and fails when UnquoteUsage returns a placeholder with a space in it. That catches the whole class, including future flags. Regenerate docs-gen/ afterwards.

Activity

  1. added this to the v0.158.0 milestone on Nov 3, 2026
  2. added
    bug
    documentation
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent:spawndocumentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions