use clap::Parser;
use ratatui::style::Color;
use std::path::PathBuf;
use crate::tui::ui::Tab;
#[derive(Clone, Debug, Default, Parser)]
#[clap(
version,
author = clap::crate_authors!("\n"),
about,
rename_all_env = "screaming-snake",
help_template = "\
{before-help}{name} {version}
{author-with-newline}{about-with-newline}
{usage-heading}
{usage}
{all-args}{after-help}
",
)]
pub struct Args {
#[arg(env, name = "FILE")]
pub files: Vec<PathBuf>,
#[arg(env, short = 'n', long = "min-len", default_value = "15")]
pub min_strings_len: usize,
#[arg(env, short = 't', long = "tab", default_value = "general")]
pub tab: Tab,
#[arg(env, long, value_name = "COLOR")]
pub accent_color: Option<Color>,
}
#[cfg(test)]
mod tests {
use super::*;
use clap::CommandFactory;
#[test]
fn test_args() {
Args::command().debug_assert();
}
}