feat(espanso): clarify 'espanso service' usage. Fix #920

This commit is contained in:
Federico Terzi 2021-12-29 20:44:02 +01:00
parent 68e2698a9c
commit 7588900c06
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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)