mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 22:05:42 +00:00
Print usage() when we are left with arguments
This commit is contained in:
parent
c9d47405f4
commit
00ce7a746a
@ -861,6 +861,10 @@ main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
} ARGEND
|
} ARGEND
|
||||||
|
|
||||||
|
if (argc) {
|
||||||
|
usage();
|
||||||
|
}
|
||||||
|
|
||||||
memset(&act, 0, sizeof(act));
|
memset(&act, 0, sizeof(act));
|
||||||
act.sa_handler = sighandler;
|
act.sa_handler = sighandler;
|
||||||
sigaction(SIGINT, &act, 0);
|
sigaction(SIGINT, &act, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user