fix(cli): mark report_states_for_rule and json/json_summary flags

for `generate` command as conflicting
This commit is contained in:
Will Lillis 2025-10-12 04:06:22 -04:00
parent 86e2fd2337
commit d546e28abf

View file

@ -127,13 +127,21 @@ struct Generate {
#[arg(long, short, value_name = "DIRECTORY")]
pub output: Option<PathBuf>,
/// 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<String>,
/// 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"))]