Added local flag to socket startups
This commit is contained in:
+11
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user