diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 23056be7..9f895987 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -127,13 +127,21 @@ struct Generate { #[arg(long, short, value_name = "DIRECTORY")] pub output: Option, /// Produce a report of the states for the given rule, use `-` to report every rule - #[arg(long)] + #[arg(long, conflicts_with = "json", conflicts_with = "json_summary")] pub report_states_for_rule: Option, /// Deprecated: use --json-summary - #[arg(long, conflicts_with = "json_summary")] + #[arg( + long, + conflicts_with = "json_summary", + conflicts_with = "report_states_for_rule" + )] pub json: bool, /// Report conflicts in a JSON format - #[arg(long, conflicts_with = "json")] + #[arg( + long, + conflicts_with = "json", + conflicts_with = "report_states_for_rule" + )] pub json_summary: bool, /// The name or path of the JavaScript runtime to use for generating parsers #[cfg(not(feature = "qjs-rt"))]