diff --git a/bin/src/config.rs b/bin/src/config.rs index 0f09618..07b3f17 100644 --- a/bin/src/config.rs +++ b/bin/src/config.rs @@ -50,7 +50,8 @@ pub struct Check { unrestricted: bool, /// Output format. - /// Supported values: stderr, errfmt, json (on feature flag only) + #[cfg_attr(feature = "json", doc = "Supported values: stderr, errfmt, json")] + #[cfg_attr(not(feature = "json"), doc = "Supported values: stderr, errfmt")] #[clap(short = 'o', long, default_value_t, parse(try_from_str))] pub format: OutFormat,