Skip to content

Commit

Permalink
Added an argument for Timeout during connections!
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBinitGhimire committed Jan 15, 2022
1 parent a792d4c commit 4130ac7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/arguments.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::{App, AppSettings::ArgRequiredElseHelp, Arg, ArgMatches};

pub fn _parse_args() -> ArgMatches {
App::new("NtHiM")
App::new("NtHiM")
.version("0.1.3")
.author("Binit Ghimire <thebinitghimire@gmail.com>, Captain Nick Lucifer* <naryal2580@gmail.com>")
.about("Now, the Host is Mine! - Super Fast Sub-domain Takeover Detection!")
Expand All @@ -18,10 +18,15 @@ pub fn _parse_args() -> ArgMatches {
.long("target")
.takes_value(true),
Arg::new("threads")
.about("Number of Concurrent Threads!")
.about("Number of Concurrent Threads! (default: 10)")
.short('c')
.long("threads")
.takes_value(true),
Arg::new("timeout")
.about("Timeout for connections (in seconds)! (default: 5)")
.short('s')
.long("timeout")
.takes_value(true),
Arg::new("verbose")
.about("Enable Verbose Mode!")
.short('v')
Expand Down

0 comments on commit 4130ac7

Please sign in to comment.