1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use std::path::PathBuf;
#[derive(Debug, Clone)]
#[cfg_attr(feature = "clap", derive(clap::Parser))]
pub struct Opts {
/// The input file - in json
pub input: PathBuf,
/// If enabled all card scores will be reset
#[cfg_attr(feature = "clap", clap(long, short))]
pub reset: bool,
/// Prevents the game from writing to a save
#[cfg_attr(feature = "clap", clap(long, short))]
pub nowrite: bool,
/// How many cards to be testing on at once
#[cfg_attr(feature = "clap", clap(long, short))]
pub testing: Option<usize>,
}