diff options
-rw-r--r-- | sway/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index 67d0f799..12f92bd8 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -320,7 +320,13 @@ int main(int argc, char **argv) { | |||
320 | 320 | ||
321 | if (optind < argc) { // Behave as IPC client | 321 | if (optind < argc) { // Behave as IPC client |
322 | if (optind != 1) { | 322 | if (optind != 1) { |
323 | sway_log(SWAY_ERROR, "Don't use options with the IPC client"); | 323 | sway_log(SWAY_ERROR, |
324 | "Detected both options and positional arguments. If you " | ||
325 | "are trying to use the IPC client, options are not " | ||
326 | "supported. Otherwise, check the provided arguments for " | ||
327 | "issues. See `man 1 sway` or `sway -h` for usage. If you " | ||
328 | "are trying to generate a debug log, use " | ||
329 | "`sway -d 2>sway.log`."); | ||
324 | exit(EXIT_FAILURE); | 330 | exit(EXIT_FAILURE); |
325 | } | 331 | } |
326 | if (!drop_permissions()) { | 332 | if (!drop_permissions()) { |