Skip to content

Commit

Permalink
Fix conflict in argument names
Browse files Browse the repository at this point in the history
  • Loading branch information
bpandreotti committed Jun 3, 2024
1 parent f380239 commit cafa17a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ struct ParsingOptions {
#[clap(long)]
allow_int_real_subtyping: bool,

/// Enables strict parsing and checking.
/// Enables strict parsing.
///
/// When this flag is enabled: unary `and`, `or` and `xor` terms are not allowed; for the `refl`
/// and `assume` rules, implicit reordering of equalities is not allowed; for the `resolution`
/// and `th_resolution` rules, the pivots used must be passed as arguments.
#[clap(short, long)]
/// When this flag is enabled: unary `and`, `or` and `xor` terms are not allowed;
#[clap(short, long = "strict-parsing")]
strict: bool,
}

Expand All @@ -155,13 +153,13 @@ struct CheckingOptions {
skip_unknown_rules: bool,

#[clap(long, hide = true)] // TODO
strict: bool,
strict_checking: bool,
}

impl From<CheckingOptions> for checker::Config {
fn from(val: CheckingOptions) -> Self {
Self {
strict: val.strict,
strict: val.strict_checking,
ignore_unknown_rules: val.ignore_unknown_rules,
}
}
Expand Down

0 comments on commit cafa17a

Please sign in to comment.