argh icon indicating copy to clipboard operation
argh copied to clipboard

Expose HelpMessage and allow for custom help switches

Open msrd0 opened this issue 4 years ago • 3 comments

This pull request introduces a HelpMessage trait that is implemented for every struct that derives FromArgs, allowing the user to manually display the help message generated by argh. Also, the user can specify #[argh(disable_help = true)] which disables the built-in help flag and allows the user to add custom help flags, allowing for shorthands like -h or -? and similar customizations. Closes #30

msrd0 avatar Sep 05 '20 17:09 msrd0

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

google-cla[bot] avatar Sep 05 '20 17:09 google-cla[bot]

@googlebot I signed it!

msrd0 avatar Sep 05 '20 17:09 msrd0

I would be very interested in having this for https://github.com/poliorcetics/cargo-intraconv :)

jyn514 avatar Oct 07 '20 00:10 jyn514