bbkane / warg

Declarative and Intuitive Command Line Apps with Go
https://pkg.go.dev/go.bbkane.com/warg
MIT License
16 stars 0 forks source link

Uintuitive help when mixing command and section help #74

Open bbkane opened 10 months ago

bbkane commented 10 months ago

See https://github.com/bbkane/namedenv/blob/e15f099d5fd64879b3d1720d1287a24796be63ce/main.go

the help output:

master 07:33:46.713 PST mac02:~/Git-GH/namedenv
$ go run . -h
Manage Environmental secrets centrally

All Commands (use <cmd> -h to see flag details):

  # Print version
  namedenv version

  # Create an environment
  namedenv env create

  # Update an environment
  namedenv env update

  # Create a keyring entry. Prompts for value instead of using a flag
  namedenv keyring create

  # Print export script
  namedenv env print-script export

  # Create a variable local to the this env
  namedenv env var create local

It would be nice if keyring wasn't in between the env commands and env sections