From ca3cf706e4d6ceb9a79adb66ed0bbfc459d8c829 Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Tue, 17 Dec 2019 12:36:40 +0000 Subject: [PATCH] Added local flag to socket startups --- src/main.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6dc3ea6c3e..6efd6bb882 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use clap::{App, Arg, ArgMatches, SubCommand}; use std::process; -mod clients; +pub mod clients; mod commands; mod identity; mod persistence; @@ -48,6 +48,11 @@ fn main() { .takes_value(true) .required(true), ) + .arg(Arg::with_name("local") + .long("local") + .help("Flag to indicate whether the client is expected to run on the local deployment.") + .takes_value(false) + ) ) .subcommand( SubCommand::with_name("websocket") @@ -60,6 +65,11 @@ fn main() { .takes_value(true) .required(true), ) + .arg(Arg::with_name("local") + .long("local") + .help("Flag to indicate whether the client is expected to run on the local deployment.") + .takes_value(false) + ) ) .get_matches();