flashed/
opts.rs

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