From 17c6bd803dbbecb8975b1b98532d25a807a7b3fb Mon Sep 17 00:00:00 2001 From: UMTS at Teleco Date: Sun, 8 Mar 2026 22:11:52 +0100 Subject: docs and font fix --- src/cli.rs | 58 ++++++++++------------------------------------------------ 1 file changed, 10 insertions(+), 48 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index e4f905b..5428f05 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -2,98 +2,60 @@ use clap::Parser; use std::path::PathBuf; #[derive(Parser, Debug)] -#[command(name = "hoardom", version = "0.0.1", about = "Domain hoarding made less painful")] +#[command( + name = "hoardom", + version = "0.0.1", + about = "Domain hoarding made less painful" +)] // static version infos ???? whoops #[command(disable_help_flag = true, disable_version_flag = true)] pub struct Args { - /// One or more domain names to search for + /// ffs why were a million comments added at some point !?!? basically all of these are self explanatory. removed dumb ass redundant ones. + #[arg(value_name = "DOMAIN")] pub domains: Vec, - - // -- Mode -- - /// Default non interactive mode #[arg(long = "cli", default_value_t = false)] pub cli_mode: bool, - - /// Easy to use Terminal based Graphical user interface #[arg(long = "tui", default_value_t = false)] pub tui_mode: bool, - - // -- Basics -- - /// Define where environement file should be saved #[arg(short = 'e', long = "environement")] pub env_path: Option, - - /// Show all in list even when unavailable #[arg(short = 'a', long = "all", default_value_t = false)] pub show_all: bool, - - // -- Advanced -- - /// Out in CSV, Path is optional. If path isnt given will be printed to terminal with no logs #[arg(short = 'c', long = "csv")] pub csv: Option>, - - /// Built in TLD list to use (from Lists.toml) #[arg(short = 'l', long = "list")] pub tld_list: Option, - - /// Import a custom toml list for this session #[arg(short = 'i', long = "import-filter")] pub import_filter: Option, - - /// Set certain TLDs to show up as first result (comma separated) #[arg(short = 't', long = "top", value_delimiter = ',')] pub top_tlds: Option>, - - /// Only search these TLDs (comma separated) #[arg(short = 'o', long = "onlytop", value_delimiter = ',')] pub only_top: Option>, - - /// How many suggestions to look up and try to show (defaults to 0 aka disabled) #[arg(short = 's', long = "suggestions")] pub suggestions: Option, - - // -- Various -- - /// Number of concurrent lookup requests (default: 1) #[arg(short = 'j', long = "jobs")] pub jobs: Option, - - /// Set the global delay in seconds between lookup requests #[arg(short = 'D', long = "delay")] pub delay: Option, - - /// Retry NUMBER amount of times if domain lookup errors out #[arg(short = 'R', long = "retry")] pub retry: Option, - - /// Verbose output for debugging #[arg(short = 'V', long = "verbose", default_value_t = false)] pub verbose: bool, - - /// Search for names/domains in text file, one domain per new line + /// search for names/domains in a text file line by line. #[arg(short = 'A', long = "autosearch")] pub autosearch: Option, - - /// Use a monochrome color scheme + /// Use a monochrome color scheme TODO: not applied in TUI since colors were changed from RGB to Ratatui colors. should fix #[arg(short = 'C', long = "no-color", default_value_t = false)] pub no_color: bool, - - /// Do not use unicode only plain ASCII + /// Do not use unicode only plain ASCII TODO: not applied in TUI for some reason idk #[arg(short = 'U', long = "no-unicode", default_value_t = false)] pub no_unicode: bool, - - /// Disable the mouse integration for TUI #[arg(short = 'M', long = "no-mouse", default_value_t = false)] pub no_mouse: bool, - - /// Force refresh the RDAP bootstrap cache #[arg(short = 'r', long = "refresh-cache", default_value_t = false)] pub refresh_cache: bool, - - /// Basic Help #[arg(short = 'h', long = "help", default_value_t = false)] pub help: bool, - - /// Show full help #[arg(short = 'H', long = "fullhelp", default_value_t = false)] pub fullhelp: bool, } -- cgit v1.2.3-70-g09d2