- if((argc > 1) && !strncmp(argv[1], "-v", 3)) {
- fputs("slock-"VERSION", © 2006-2007 Anselm R. Garbe\n", stdout);
- exit(EXIT_SUCCESS);
- }
+ if((argc == 2) && !strcmp("-v", argv[1]))
+ eprint("slock-"VERSION", © 2006-2007 Anselm R. Garbe, Sander van Dijk\n");
+ else if(argc != 1)
+ eprint("usage: slock [-v]\n");