userplex: Parse command-line arguments properly.
[ashd.git] / src / userplex.c
index b0a3a8e..565884d 100644 (file)
@@ -232,7 +232,7 @@ out:
 
 static void usage(FILE *out)
 {
-    fprintf(out, "usage: userplex [-hI] [-g GROUP] [-m MIN-UID] [-d PUB-DIR] [PROGRAM ARGS...]");
+    fprintf(out, "usage: userplex [-hI] [-g GROUP] [-m MIN-UID] [-d PUB-DIR] [PROGRAM ARGS...]\n");
 }
 
 int main(int argc, char **argv)
@@ -242,7 +242,7 @@ int main(int argc, char **argv)
     int fd;
     struct charvbuf csbuf;
     
-    while((c = getopt(argc, argv, "hIg:m:d:")) >= 0) {
+    while((c = getopt(argc, argv, "+hIg:m:d:")) >= 0) {
        switch(c) {
        case 'I':
            ignore = 1;