1use clap::Args;
2
3#[derive(Debug, Clone, Copy, clap::ValueEnum)]
4pub enum VerifyMode {
5 #[value(help = "Auto-detect: verify all functions with unsafe callees or struct invariants")]
6 Scan,
7 #[value(help = "Only verify functions annotated with #[rapx::verify]")]
8 Targeted,
9 #[value(help = "Like `scan` or `targeted` but skip struct invariant checks")]
10 Invless,
11}
12
13#[derive(Debug, Clone, Args)]
15pub struct VerifyArgs {
16 #[arg(long)]
18 pub prepare_targets: bool,
19 #[arg(long, default_value_t = 0)]
22 pub postfix_repeat: usize,
23 #[arg(long, default_value = "scan")]
25 pub mode: VerifyMode,
26}