adopt icon indicating copy to clipboard operation
adopt copied to clipboard

adopt_spec->help not used?

Open georcon opened this issue 3 years ago • 2 comments

There doesn't seem to be a way to print detailed usage information (rather than the usage synopsis). Is this accurate?

As per the example, I would have expected something like:

./example: either '-q' or '-l' is required.
usage: ./example [-v] (-q|-l) [-c <channel>] [--] <file1> [<file2>] [<other>...]
-v --verbose: Turn on verbose information
-q --quiet: Emit no output
-l --loud: Emit louder than usual output
[...]

`

georcon avatar Apr 06 '22 12:04 georcon

Hmm, yes, that does seem like an annoying oversight. For background, this project was primarily intended to be used in libgit2's cli, which means some of the bits remain living over there, including the help printing.

That seems like a thing that should probably move back over here.

ethomson avatar Apr 06 '22 13:04 ethomson

Thanks for the response. Would you be open to a PR to add this functionality?

georcon avatar Apr 06 '22 14:04 georcon