summaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/args.rs2
-rw-r--r--src/cli/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/args.rs b/src/cli/args.rs
index a81d25e..8ef4b89 100644
--- a/src/cli/args.rs
+++ b/src/cli/args.rs
@@ -110,7 +110,7 @@ pub struct Args {
/// Semicolon separated commands to execute
#[clap(short, long, value_parser)]
- pub commands: Option<String>,
+ pub cmd: Option<String>,
/// Whether to have styles and colors (auto is default and usually OK)
#[clap(long, arg_enum, value_parser, default_value="auto")]
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index bd18a89..903bb33 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -105,7 +105,7 @@ pub fn run() -> Result<Option<Launchable>, ProgramError> {
net::{Client, Message},
};
let client = Client::new(server_name);
- if let Some(seq) = &context.launch_args.commands {
+ if let Some(seq) = &context.launch_args.cmd {
let message = Message::Sequence(Sequence::new_local(seq.to_string()));
client.send(&message)?;
} else if !context.launch_args.get_root {