mirror of https://github.com/E-Almqvist/wwmap
parent
3f1aa3d65e
commit
483dda0bb6
@ -1,7 +1,18 @@ |
|||||||
use clap::Parser; |
use clap::Parser; |
||||||
|
use std::path::PathBuf; |
||||||
|
|
||||||
#[derive(Parser, Debug)] |
#[derive(Parser, Debug)] |
||||||
struct Args { |
#[clap(name = "World Wide Mapping", version, about = "Scan the world wide web for a certian port.", long_about = None)] |
||||||
name: String, |
pub struct Args { |
||||||
count: u8 |
#[clap(help = "Which port to scan for.", short = 'p', long = "port")] |
||||||
|
pub port: u16, |
||||||
|
|
||||||
|
#[clap(help = "Amount of threads that will be used when scanning for the specified port.", short = 'n', long = "threads", default_value_t = 1)] |
||||||
|
pub threads: u8, |
||||||
|
|
||||||
|
#[clap(help = "A file containing ignored IPv4 addresses (seperated by linebreaks).", short = 'i', long = "ignore-ip-list", default_value = "ignore-ips-list.txt")] |
||||||
|
pub ignorelist: PathBuf, |
||||||
|
|
||||||
|
#[clap(help = "Enable verbose (debug) output", short = 'v', long = "verbose", takes_value = false, required = false)] |
||||||
|
pub verbose: bool |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue