These are chat archives for kbknapp/clap-rs

26th
Jun 2015
Kevin K.
@kbknapp
Jun 26 2015 09:17
Ah OK, hope you're feeling better! I've been there too. If you don't like the default usage string you can override just that with .usage() and provide additional help details with .after_help() using these two gets you really close to how cargos looks, but still auto generates everything which is nice when you need to make changes. The only difference is how arguments are split up in groups and not lumped all together. To get them all together you have to override the whole thing with help() but then its not auto generated and you have to maintain it each time you make changes.
One downside to overriding the usage string is you don't get the context aware usage strings, it'll just use the user provided ones each time. Just FYI.