Skip to content

Commit

Permalink
fix: wrong version in help command
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmuente committed Sep 13, 2021
1 parent 306d394 commit 362d6b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Expand Up @@ -5,9 +5,10 @@ use std::sync::mpsc;
use std::sync::Arc;
use std::sync::Mutex;
use std::{thread, time};
use clap::crate_version;

#[derive(Clap)]
#[clap(version = "1.0", author = "Josh M. <https://github.com/joshmuente>")]
#[clap(version = crate_version!(), author = "Josh M. <https://github.com/joshmuente>")]
#[clap(setting = AppSettings::ColoredHelp)]
struct Opts {
#[clap(short, long, takes_value = true, default_value = "127.0.0.1")]
Expand Down Expand Up @@ -117,7 +118,9 @@ fn main() {
}

drop(pool);
loader.info(format!("Finished scanning {} ports.", { opts.to_port - opts.from_port+1 }));
loader.info(format!("Finished scanning {} ports.", {
opts.to_port - opts.from_port + 1
}));
loader.end();
thread::sleep(time::Duration::from_millis(10));
std::process::exit(exitcode::OK);
Expand Down

0 comments on commit 362d6b1

Please sign in to comment.