-
I'd like to grab bpaf's own usage message (ie. not a custom one) for my own use. This is mainly because I want a Is this possible? Or otherwise is there a better way of doing the above? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sorry this should have been a discussion. |
Beta Was this translation helpful? Give feedback.
-
In bpaf terms subcommand is something with a dedicated name and help so the only thing Next, to display the help message in your own code you can either use In general capturing all the arguments from OS, adding extra |
Beta Was this translation helpful? Give feedback.
In bpaf terms subcommand is something with a dedicated name and help so the only thing
help
subcommand can display is a help for itself which is not very useful, you can return a default enum variant like so.Next, to display the help message in your own code you can either use
get_usage
or implement your own variant of it - batteries only use public API so you can do that too.In general capturing all the arguments from OS, adding extra
--help
at the end and passing it toArgs::run_inner
will give you help message