webgrep 0.4.3

grep the web: a full-browser-spec search-focused ultra-simple way to read the web without having to leave the terminal
use clap::ArgAction;
use clap::Parser;

#[derive(Parser, Clone)]
#[command(version, about, long_about = None)]
pub struct ArgParser {
    #[arg(index = 1)]
    pub url: String,

    #[arg(index = 2)]
    pub search: Option<String>,

    #[arg(short, long)]
    pub recursive: Option<i8>,

    #[arg(short, long, action=ArgAction::SetTrue)]
    pub insensitive: Option<bool>,

    #[arg(short = 'o', long = "samehost", action=ArgAction::SetTrue)]
    pub samehost: Option<bool>,

    #[arg(short = 'p', long = "pathcontains")]
    pub pathcontains: Option<String>,

    #[arg(short = 'c', long = "chrome", action=ArgAction::SetTrue)]
    pub use_chrome: Option<bool>,

    #[arg(short, long, action=ArgAction::SetTrue)]
    pub break_when_found: Option<bool>,
}