use clap::Parser;
#[derive(Parser, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Default)]
#[command(
author,
version,
about,
long_about = "Updates the `date` and `updated` fields of the pages front matter
1. `date` should be the original publish date (Must exist and be today or earlier).
2. `updated` should only be set if `date` is not equal to the last commit date, if it needs to be set it should match the last commit date
"
)]
pub struct Cli {
#[arg(value_name = "PATH", default_value = ".")]
pub root_path: String,
#[arg(long, short)]
pub unattended: bool,
#[arg(long = "check", short = 'c')]
pub should_check_only: bool,
#[arg(long)]
pub allow_dirty: bool,
}
#[cfg(test)]
mod tests {
#[test]
fn verify_cli() {
use clap::CommandFactory;
super::Cli::command().debug_assert()
}
}