Added local flag to socket startups

This commit is contained in:
Jedrzej Stuczynski
2019-12-17 12:36:40 +00:00
parent 3ddde4c8ef
commit ca3cf706e4
+11 -1
View File
@@ -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();