TanklesXL / glint

Gleam command-line argument parsing with flags and automated help text generation.
https://hex.pm/packages/glint
Apache License 2.0
59 stars 9 forks source link

New `notes:` help output feels superfluous. #27

Closed hayleigh-dot-dev closed 7 months ago

hayleigh-dot-dev commented 7 months ago

With the addition of named args as well as the ability to require a specific number of args, there is a new notes: section in the help output.

% gleam run -m lustre build component --help
   Compiled in 0.02s
    Running lustre.main
build component

Build a Lustre component as a portable Web Component. The generated JavaScript
module can be included in any Web page and used without Gleam or Lustre being
present.

Hint: Use the `--minify` flag to produce and smaller bundle for production.

USAGE:
    gleam run -m lustre build component <module_path> [ --minify=<BOOL> ]
notes:
* this command accepts 1 argument
* this command has named arguments: "module_path"

FLAGS:
    --help          Print help information
    --minify=<BOOL>     Minify the output

I think this has a few oddities:

TanklesXL commented 7 months ago

more and more i'm inclined to agree with you on this