feat(cli): make --config optional for enable-autostart (#596)

* feat(cli): make `--config` optional for `enable-autostart`

* actually make it optional

* remove unnecessary `action` attribute
This commit is contained in:
Amr Bashir
2023-12-03 19:00:27 +02:00
committed by GitHub
parent 900051a24b
commit 7078b065f4
2 changed files with 21 additions and 20 deletions
+4 -4
View File
@@ -448,16 +448,16 @@ fn detect_deadlocks() {
#[clap(author, about, version)]
struct Opts {
/// Allow the use of komorebi's custom focus-follows-mouse implementation
#[clap(action, short, long = "ffm")]
#[clap(short, long = "ffm")]
focus_follows_mouse: bool,
/// Wait for 'komorebic complete-configuration' to be sent before processing events
#[clap(action, short, long)]
#[clap(short, long)]
await_configuration: bool,
/// Start a TCP server on the given port to allow the direct sending of SocketMessages
#[clap(action, short, long)]
#[clap(short, long)]
tcp_port: Option<usize>,
/// Path to a static configuration JSON file
#[clap(action, short, long)]
#[clap(short, long)]
config: Option<PathBuf>,
}