summaryrefslogtreecommitdiff
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprctl/main.cpp')
-rw-r--r--hyprctl/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 92ab4f5e..b52d6d15 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -232,6 +232,11 @@ int main(int argc, char** argv) {
fullRequest += ARGS[i] + " ";
}
+ if (fullRequest.empty()) {
+ printf("%s\n", USAGE.c_str());
+ return 1;
+ }
+
fullRequest.pop_back(); // remove trailing space
fullRequest = fullArgs + "/" + fullRequest;