diff --git a/espanso/src/cli/service/mod.rs b/espanso/src/cli/service/mod.rs index 6cf18fa..b9dc7fc 100644 --- a/espanso/src/cli/service/mod.rs +++ b/espanso/src/cli/service/mod.rs @@ -103,6 +103,8 @@ fn service_main(args: CliModuleArgs) -> i32 { stop_main(&paths); std::thread::sleep(std::time::Duration::from_millis(300)); return start_main(&paths, &paths_overrides, sub_args); + } else { + eprintln!("Invalid usage, please run `espanso service --help` for more information."); } SERVICE_SUCCESS diff --git a/espanso/src/main.rs b/espanso/src/main.rs index 97d42d9..d89dfd5 100644 --- a/espanso/src/main.rs +++ b/espanso/src/main.rs @@ -360,7 +360,7 @@ For example, specifying 'email' is equivalent to 'match/email.yml'."#)) .subcommand(restart_subcommand.clone()) .subcommand(stop_subcommand.clone()) .subcommand(status_subcommand.clone()) - .about("Register and manage 'espanso' as a system service."), + .about("A collection of commands to manage the Espanso service (for example, enabling auto-start on system boot)."), ) .subcommand(start_subcommand) .subcommand(restart_subcommand)