Skip to content

Commit

Permalink
Accept and ignore checking options in slice command
Browse files Browse the repository at this point in the history
  • Loading branch information
bpandreotti committed Mar 20, 2024
1 parent e5fa361 commit adb375a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum Command {
Bench(BenchCommandOptions),

/// Given a step, takes a slice of a proof consisting of all its transitive premises.
Slice(SliceCommandOption),
Slice(SliceCommandOptions),
}

#[derive(Args)]
Expand Down Expand Up @@ -284,7 +284,7 @@ struct BenchCommandOptions {
}

#[derive(Args)]
struct SliceCommandOption {
struct SliceCommandOptions {
#[clap(flatten)]
input: Input,

Expand All @@ -296,6 +296,15 @@ struct SliceCommandOption {

#[clap(long, short = 'd')]
max_distance: Option<usize>,

// To make slice more convenient to use, we accept (and ignore!) some options from the `check`
// subcommand
#[clap(short, long, hide = true)]
ignore_unknown_rules: bool,
#[clap(long, hide = true)]
lia_solver: Option<String>,
#[clap(long, allow_hyphen_values = true, hide = true)]
lia_solver_args: Option<String>,
}

#[derive(ArgEnum, Clone)]
Expand Down Expand Up @@ -487,7 +496,7 @@ fn bench_command(options: BenchCommandOptions) -> CliResult<()> {
Ok(())
}

fn slice_command(options: SliceCommandOption) -> CliResult<Vec<ast::ProofCommand>> {
fn slice_command(options: SliceCommandOptions) -> CliResult<Vec<ast::ProofCommand>> {
let (problem, proof) = get_instance(&options.input)?;
let config = parser::Config {
apply_function_defs: options.parsing.apply_function_defs,
Expand Down

0 comments on commit adb375a

Please sign in to comment.