Skip to main content

rolodex_tui/
cli.rs

1use clap::Parser;
2use std::path::PathBuf;
3
4#[derive(Parser)]
5#[command(name = "rolodex")]
6#[command(author, version, about)]
7pub struct Cli {
8    /// Seed fake users into the database
9    #[arg(long)]
10    pub seed: Option<u32>,
11
12    /// Backup contacts to a JSON file
13    #[arg(long)]
14    pub backup: Option<PathBuf>,
15
16    /// Restore contacts from a JSON backup file
17    #[arg(long)]
18    pub restore: Option<PathBuf>,
19}