summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-06-20 16:47:36 +0200
committerAylur <[email protected]>2024-06-20 16:47:36 +0200
commit3500457e97821d50c067dea37d1a2d28d8db2111 (patch)
treec68fdad5401362f0774f5b7fa65b6c3857babf2c /src
parent9812a21318abc3c508c5a6152336578d621a1032 (diff)
fix: cli hanging on empty args
Diffstat (limited to 'src')
-rw-r--r--src/cli.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.vala b/src/cli.vala
index 1c051d3..980de9c 100644
--- a/src/cli.vala
+++ b/src/cli.vala
@@ -103,6 +103,9 @@ int main(string[] argv) {
});
}
+ if (!daemonize && invoke == null && close_n == 0 && get_n == 0)
+ return 1;
+
loop.run();
return 0;
}