You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
For the purposes of reducing binary size, I'd love to have a new default feature flag for clap (that projects could then disable) that would omit generated --help and all friendly error/constraint messages, and minimize error reporting to just "Invalid arguments" or similar. That would help for embedded use cases that may want to reduce the sizes of binaries used in scripting, without regard to human invocations of those binaries.
The text was updated successfully, but these errors were encountered:
Comment by ldm0 Thursday Jan 28, 2021 at 17:25 GMT
I would like this as well, but supported as a runtime option instead of a feature flag, so that it can be enabled or disabled on a case-by-case basis.
@Rua This issue is mainly about reducing binary size. If you just wanna control the help message emission in the runtime, the right-now approach is using try_get_matches to get a result and control the output by yourself.
Comment by pksunkara Wednesday Jun 16, 2021 at 01:27 GMT
Postponing this for later than 3.0 because we need design on how to divided the existing help, error messages, usage etc.. into separate feature flags.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sunday Nov 18, 2018 at 10:10 GMT
Originally opened as clap-rs/clap#1384
For the purposes of reducing binary size, I'd love to have a new default feature flag for
clap
(that projects could then disable) that would omit generated--help
and all friendly error/constraint messages, and minimize error reporting to just "Invalid arguments" or similar. That would help for embedded use cases that may want to reduce the sizes of binaries used in scripting, without regard to human invocations of those binaries.The text was updated successfully, but these errors were encountered: