As pointed out in #suckless, sticking to the POSIX Utility Syntax Guidelines[0] is a good idea.
0: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02 --- slock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slock.c b/slock.c index af5edb2..1d28e3a 100644 --- a/slock.c +++ b/slock.c @@ -302,6 +302,9 @@ main(int argc, char *argv[]) { if (!strcmp("-v", argv[1])) { fputs("slock-"VERSION"\n", stderr); return 0; + } else if (!strcmp("--", argv[1])) { + --argc; + ++argv; } else die("usage: slock [-v] [cmd [arg ...]]\n"); } -- 2.8.3