diff options
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/notify.c b/src/notify.c index 6dd708a900..514636e472 100644 --- a/src/notify.c +++ b/src/notify.c @@ -115,6 +115,15 @@ static int parse_argv(int argc, char *argv[]) { } } + if (optind >= argc && + !arg_ready && + !arg_status && + !arg_pid && + !arg_booted) { + help(); + return -EINVAL; + } + return 1; } |