Skip to content

Disable default flags #2036

Answered by mfaerevaag
mfaerevaag asked this question in Q&A
Jul 27, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

So I found #[clap(setting=AppSettings::DisableVersion)], which works, but #[clap(setting=AppSettings::DisableHelpFlags)], does not:

error[E0599]: no variant or associated item named `DisableHelpFlags` found for enum `clap::AppSettings` in the current scope
  --> src/repl.rs:52:29
   |
52 | #[clap(setting=AppSettings::DisableHelpFlags)]
   |                             ^^^^^^^^^^^^^^^^ variant or associated item not found in `clap::AppSettings`

Version: clap = "3.0.0-beta.1"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CreepySkeleton
Comment options

@mfaerevaag
Comment options

Answer selected by pksunkara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants