1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use std::path::{Path, PathBuf};

use clap::Parser;

#[derive(Parser, Default, Debug)]
#[clap(author = "Ddraigan", version, about = "A side by side git diff view")]
pub struct Arguments {
    #[clap(short = 'C', long)]
    /// Giving a full path allows diff-tool to diff outside of the git repo
    change_dir: bool,
    /// File to diff with
    path: PathBuf,
    // #[clap(short, long, default_value_t = 250)]
    // tick_rate: u64,
}

impl Arguments {
    pub fn path(&self) -> &Path {
        &self.path
    }

    pub fn change_dir(&self) -> bool {
        self.change_dir
    }

    // pub fn tick_rate(&self) -> u64 {
    //     self.tick_rate
    // }
}