* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long

options.
This commit is contained in:
nekral-guest
2008-09-04 20:20:20 +00:00
parent 7e0008a2d7
commit 7e17182e4c
4 changed files with 24 additions and 6 deletions

View File

@@ -362,7 +362,18 @@ static void display_members (const char *const *members)
static void usage (void)
{
(void) fputs (_("Usage: groupmems -a username | -d username | -p | -l [-g groupname]\n"), stderr);
(void) fputs (_("Usage: groupmems [options] [action]\n"
"\n"
"Options:\n"
" -g, --group groupname change groupname instead of the user's group\n"
" (root only)\n"
"\n"
"Actions:\n"
" -a, --add username add username to the members of the group\n"
" -d, --delete username remove username from the members of the group\n"
" -p, --purge purge all members from the group\n"
" -l, --list list the members of the group\n"
"\n"), stderr);
fail_exit (EXIT_USAGE);
}