Skip to content

Option for full Usage path in help #44

@kristofferahl

Description

@kristofferahl

Loving the fangs! 🥇

Currently, if you have a deep command structure (root -> command -> subcommand), usage only prints the subcommand as part of the help output.

Would it be resonable to add an option to use the full Usage "path" for a command when rendering the help text?

if err := fang.Execute(context.Background(), cmd, fang.WithFullUsagePath()); err != nil {
	os.Exit(1)
}

Turning this:

  Deploy k8s app

  USAGE

    k8s [--flags]

Into this:

  Deploy k8s app

  USAGE

    cli deploy k8s [--flags]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions