]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw.c
More egcs warning fixes:
[pw-darwin.git] / pw / pw.c
diff --git a/pw/pw.c b/pw/pw.c
index d531fdc2faf863a0852fb31f141fdb91c34f1aff..f71cdf70ab19cb9f590a728dad98fd579a6af875 100644 (file)
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: pw.c,v 1.12 1999/02/23 07:15:10 davidn Exp $";
+       "$Id: pw.c,v 1.14 1999/02/23 11:01:50 davidn Exp $";
 #endif /* not lint */
 
 #include <err.h>
@@ -101,7 +101,7 @@ main(int argc, char *argv[])
                        "V:C:qn:u:c:d:e:p:g:G:mk:s:oL:i:w:h:Db:NPy:Y",
                        "V:C:qn:u:rY",
                        "V:C:qn:u:c:d:e:p:g:G:ml:k:s:w:L:h:FNPY",
-                       "V:C:qn:u:FPa",
+                       "V:C:qn:u:FPa7",
                        "V:C:q"
                },
                { /* grp  */
@@ -153,7 +153,7 @@ main(int argc, char *argv[])
                        mode = tmp % M_NUM;
                } else if (strcmp(argv[1], "help") == 0)
                        cmdhelp(mode, which);
-               else if (which != -1 && mode != -1 && arglist.lh_first == NULL)
+               else if (which != -1 && mode != -1)
                        addarg(&arglist, 'n', argv[1]);
                else
                        errx(EX_USAGE, "unknown keyword `%s'", argv[1]);
@@ -351,7 +351,8 @@ cmdhelp(int mode, int which)
                                "\t-u uid         user id\n"
                                "\t-F             force print\n"
                                "\t-P             prettier format\n"
-                               "\t-a             print all users\n",
+                               "\t-a             print all users\n"
+                               "\t-7             print in v7 format\n",
                                "usage: pw usernext [switches]\n"
                                "\t-V etcdir      alternate /etc location\n"
                                "\t-C config      configuration file\n"