]> granicus.if.org Git - shadow/commitdiff
* src/gpasswd.c: Document the long options in the usage.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 6 Sep 2008 22:20:19 +0000 (22:20 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 6 Sep 2008 22:20:19 +0000 (22:20 +0000)
ChangeLog
src/gpasswd.c

index 8be1c3b2977ca6227f75c533b10aef270fc6a0d4..f0b77dd3e28eec4c2dee83882dc2e8febe0529a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-07  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/gpasswd.c: Document the long options in the usage.
+
 2008-09-06  Nicolas François  <nicolas.francois@centraliens.net>
 
        * NEWS: Added configure --enable-account-tools-setuid (default) /
index 02f367e1a171a8dee5b0050d7ebbb8ed16f698ed..517008edde3a3be80d28ecba3faf166b239151c8 100644 (file)
@@ -119,15 +119,27 @@ static void change_passwd (struct group *gr);
  */
 static void usage (void)
 {
-       fprintf (stderr, _("Usage: %s [-r|-R] group\n"), Prog);
-       fprintf (stderr, _("       %s [-a user] group\n"), Prog);
-       fprintf (stderr, _("       %s [-d user] group\n"), Prog);
-#ifdef SHADOWGRP
        fprintf (stderr,
-                _("       %s [-A user,...] [-M user,...] group\n"), Prog);
+                _("Usage: %s [option] GROUP\n"
+                  "\n"
+                  "Options:\n"
+                  "  -a, --add USER                add USER to GROUP\n"
+                  "  -d, --delete USER             remove USER from GROUP\n"
+                  "  -r, --remove-password         remove the GROUP's password\n"
+                  "  -R, --restrict                restrict access to GROUP to its members\n"
+                  "  -M, --members USER,...        set the list of members of GROUP\n"
+                  "%s\n"
+                  "\n"),
+                Prog,
+#ifdef SHADOWGRP
+                _("  -A, --administrators ADMIN,...\n"
+                  "                                set the list of administrators for GROUP\n"
+                  "Except for the -A and -M options, the options cannot be combined.\n")
+                
 #else
-       fprintf (stderr, _("       %s [-M user,...] group\n"), Prog);
+                _("The options cannot be combined.\n")
 #endif
+               );
        exit (E_USAGE);
 }