commands: using Nym banner on client start

This commit is contained in:
Dave Hrycyszyn
2019-12-17 14:50:36 +00:00
parent 127f6b4047
commit ddaf4b6a86
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,3 +1,4 @@
use crate::banner;
use crate::clients::NymClient;
use crate::identity::mixnet;
use crate::persistence::pathfinder::Pathfinder;
@@ -5,6 +6,8 @@ use crate::persistence::pemstore::PemStore;
use clap::ArgMatches;
pub fn execute(matches: &ArgMatches) {
println!("{}", banner());
let is_local = matches.is_present("local");
let id = matches.value_of("id").unwrap().to_string();
+2
View File
@@ -4,6 +4,8 @@ use clap::ArgMatches;
use std::net::ToSocketAddrs;
pub fn execute(matches: &ArgMatches) {
println!("{}", banner());
let port = match matches.value_of("port").unwrap().parse::<u16>() {
Ok(n) => n,
Err(err) => panic!("Invalid port value provided - {:?}", err),