Replies: 1 comment 11 replies
-
This is one of the things that is making the current settings audit harder. Some of the settings have pre-requisites on other settings. This is what I am aiming for:
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Early in clap3 history, it looks like the plan was to deprecate binary methods on args (e.g.
arg.takes_value(true)
) in favor of arg settings (e.g.arg.setting(ArgSettings::TakesValue)
) in clap2 with them removed in clap3 (see 6fc70d8 and #1037). This was reverted in 82ffb82 to ease the transition.It looks like all of the method docs were ported to the arg settings and it was then reverted by hand, copying them back over. Now, the examples for binary methods are a mixture of using the method vs using the setting.
What should the expectation be moving forward?
Ideas:
And for whatever route we expect the future to be, it seems like we should set the example in all other docs and in
clap_derive
.For example
vs
Beta Was this translation helpful? Give feedback.
All reactions