aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorUMTS at Teleco <crt@teleco.ch>2026-03-08 22:11:52 +0100
committerUMTS at Teleco <crt@teleco.ch>2026-03-08 22:11:52 +0100
commit17c6bd803dbbecb8975b1b98532d25a807a7b3fb (patch)
treebc0e339ca514414261ce211ab0f74101e6d8aefa /src/cli.rs
parentee17cec85d3d9ef2abc0d7a50c980d82b429b59d (diff)
docs and font fix
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs58
1 files changed, 10 insertions, 48 deletions
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<String>,
-
- // -- 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<PathBuf>,
-
- /// 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<Option<PathBuf>>,
-
- /// Built in TLD list to use (from Lists.toml)
#[arg(short = 'l', long = "list")]
pub tld_list: Option<String>,
-
- /// Import a custom toml list for this session
#[arg(short = 'i', long = "import-filter")]
pub import_filter: Option<PathBuf>,
-
- /// Set certain TLDs to show up as first result (comma separated)
#[arg(short = 't', long = "top", value_delimiter = ',')]
pub top_tlds: Option<Vec<String>>,
-
- /// Only search these TLDs (comma separated)
#[arg(short = 'o', long = "onlytop", value_delimiter = ',')]
pub only_top: Option<Vec<String>>,
-
- /// How many suggestions to look up and try to show (defaults to 0 aka disabled)
#[arg(short = 's', long = "suggestions")]
pub suggestions: Option<usize>,
-
- // -- Various --
- /// Number of concurrent lookup requests (default: 1)
#[arg(short = 'j', long = "jobs")]
pub jobs: Option<u8>,
-
- /// Set the global delay in seconds between lookup requests
#[arg(short = 'D', long = "delay")]
pub delay: Option<f64>,
-
- /// Retry NUMBER amount of times if domain lookup errors out
#[arg(short = 'R', long = "retry")]
pub retry: Option<u32>,
-
- /// 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<PathBuf>,
-
- /// 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,
}