Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adopt_spec->help not used? #2

Open
georcon opened this issue Apr 6, 2022 · 2 comments
Open

adopt_spec->help not used? #2

georcon opened this issue Apr 6, 2022 · 2 comments

Comments

@georcon
Copy link

georcon commented Apr 6, 2022

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
[...]

`

@ethomson
Copy link
Owner

ethomson commented Apr 6, 2022

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.

@georcon
Copy link
Author

georcon commented Apr 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants