2024-02-22 02:16:58 -05:00
|
|
|
use clap::Parser;
|
2024-02-22 01:49:57 -05:00
|
|
|
|
|
|
|
|
#[derive(Parser, Debug)]
|
|
|
|
|
#[command(version, about)]
|
|
|
|
|
pub struct Args {
|
|
|
|
|
/// set config file to use
|
|
|
|
|
#[arg(short, long, value_name = "FILE")]
|
|
|
|
|
pub config: Option<String>,
|
|
|
|
|
|
|
|
|
|
/// show current config file
|
|
|
|
|
#[arg(short = 'C', long)]
|
|
|
|
|
pub current_config: bool,
|
2024-03-06 14:31:53 -05:00
|
|
|
|
|
|
|
|
/// veiw previous day's notes
|
|
|
|
|
#[arg(short = 'p', long, default_value_t = 0)]
|
|
|
|
|
pub previous: u16,
|
2024-02-22 01:49:57 -05:00
|
|
|
}
|