Hejsil / zig-clap

Command line argument parsing library
MIT License
939 stars 67 forks source link

Why the usage output is so simple? #80

Closed TheWaWaR closed 2 years ago

TheWaWaR commented 2 years ago

The usage output is so simple even missing the description of the parameter. I think it's bad for user experience.

How about support usage output just like clap-rs?

$ demo --help
clap [..]
A simple to use, efficient, and full-featured Command Line Argument Parser

USAGE:
    demo[EXE] [OPTIONS] --name <NAME>

OPTIONS:
    -n, --name <NAME>      Name of the person to greet
    -c, --count <COUNT>    Number of times to greet [default: 1]
    -h, --help             Print help information
    -V, --version          Print version information
Hejsil commented 2 years ago

The usage output is so simple even missing the description of the parameter.

I'm a little confused. Have you seen clap.help?

TheWaWaR commented 2 years ago

I'm a little confused. Have you seen clap.help?

Oh, I see. Sorry about missing that. I think maybe better use clap.hep() in example code, I guess that's most users' want.

Hejsil commented 2 years ago

Cool. Seemed like you had missed it, but wasn't sure. Anything else, or can this be closed?

TheWaWaR commented 2 years ago

Nothing more. Thanks.