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
|
|
|
|
2024-03-18 22:02:24 -04:00
|
|
|
/// view previous day's notes
|
2024-03-06 14:31:53 -05:00
|
|
|
#[arg(short = 'p', long, default_value_t = 0)]
|
|
|
|
|
pub previous: u16,
|
2024-03-18 22:02:24 -04:00
|
|
|
/// list closest files to date
|
|
|
|
|
#[arg(short, long)]
|
|
|
|
|
pub list: bool,
|
2024-04-01 22:00:40 -04:00
|
|
|
/// number of files to list
|
|
|
|
|
#[arg(short, long, default_value_t = 5)]
|
|
|
|
|
pub number: usize,
|
2024-03-18 22:02:24 -04:00
|
|
|
/// list closest files to date
|
|
|
|
|
#[arg(short = 'L', long)]
|
|
|
|
|
pub list_all: bool,
|
2024-02-22 01:49:57 -05:00
|
|
|
}
|