aboutsummaryrefslogtreecommitdiff
path: root/bin/src/config.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-02-20 06:09:17 +0000
committerAkshay <[email protected]>2022-02-20 06:09:17 +0000
commit448e6f2096b855bee1464c514dfb73477fb39774 (patch)
tree7095fefcb91c8cfe063dd5624eae234aa21ca48b /bin/src/config.rs
parent58e24a596dd0dcb00d80848e8760b0629ca9ea7d (diff)
show only available out-formats
the json out-format is displayed only when statix is compiled with cargo bulid --all-features # or cargo build --features=json
Diffstat (limited to 'bin/src/config.rs')
-rw-r--r--bin/src/config.rs3
1 files changed, 2 insertions, 1 deletions
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 {
50 unrestricted: bool, 50 unrestricted: bool,
51 51
52 /// Output format. 52 /// Output format.
53 /// Supported values: stderr, errfmt, json (on feature flag only) 53 #[cfg_attr(feature = "json", doc = "Supported values: stderr, errfmt, json")]
54 #[cfg_attr(not(feature = "json"), doc = "Supported values: stderr, errfmt")]
54 #[clap(short = 'o', long, default_value_t, parse(try_from_str))] 55 #[clap(short = 'o', long, default_value_t, parse(try_from_str))]
55 pub format: OutFormat, 56 pub format: OutFormat,
56 57