diff --git a/clients/nym-client/src/commands/run.rs b/clients/nym-client/src/commands/run.rs deleted file mode 100644 index 932da4a190..0000000000 --- a/clients/nym-client/src/commands/run.rs +++ /dev/null @@ -1,17 +0,0 @@ -use crate::banner; -//use crate::clients::NymClient; -//use crate::persistence::pemstore; -use clap::ArgMatches; - -pub fn execute(_matches: &ArgMatches) { - println!("{}", banner()); - panic!("For time being this command is deprecated! Please use 'websocket' instead"); - // - // let is_local = matches.is_present("local"); - // let id = matches.value_of("id").unwrap().to_string(); - // println!("Starting client..."); - // - // let keypair = pemstore::read_keypair_from_disk(id); - // let client = NymClient::new(keypair.public_bytes(), is_local); - // client.start("127.0.0.1:9000".parse().unwrap()).unwrap(); -} diff --git a/clients/nym-client/src/main.rs b/clients/nym-client/src/main.rs index ad038e45b5..34b1b63b8a 100644 --- a/clients/nym-client/src/main.rs +++ b/clients/nym-client/src/main.rs @@ -30,22 +30,6 @@ fn main() { .takes_value(true) ) ) - .subcommand( - SubCommand::with_name("run") - .about("Run a persistent Nym client process") - .arg(Arg::with_name("id") - .long("id") - .help("Id of the nym-mixnet-client we want to run.") - .takes_value(true) - .required(true) - ) - .arg( - Arg::with_name("directory") - .long("directory") - .help("Address of the directory server the client is getting topology from") - .takes_value(true), - ) - ) .subcommand( SubCommand::with_name("tcpsocket") .about("Run Nym client that listens for bytes on a TCP socket") @@ -109,7 +93,6 @@ pub mod built_info { fn execute(matches: ArgMatches) -> Result<(), String> { match matches.subcommand() { ("init", Some(m)) => Ok(commands::init::execute(m)), - ("run", Some(m)) => Ok(commands::run::execute(m)), ("tcpsocket", Some(m)) => Ok(commands::tcpsocket::execute(m)), ("websocket", Some(m)) => Ok(commands::websocket::execute(m)), _ => Err(usage()),