* src/usermod.c, src/useraddd.c: Fix the usage string so that it

does not change depending on the configure option. Use a format.
This commit is contained in:
nekral-guest
2009-04-11 18:39:56 +00:00
parent 80a30dfe6f
commit 554d4f6b95
3 changed files with 24 additions and 7 deletions

View File

@ -300,7 +300,8 @@ static int get_groups (char *list)
*/
static void usage (void)
{
fputs (_("Usage: usermod [options] LOGIN\n"
fprintf (stderr,
_("Usage: usermod [options] LOGIN\n"
"\n"
"Options:\n"
" -c, --comment COMMENT new value of the GECOS field\n"
@ -323,10 +324,14 @@ static void usage (void)
" -s, --shell SHELL new login shell for the user account\n"
" -u, --uid UID new UID for the user account\n"
" -U, --unlock unlock the user account\n"
"%s"
"\n"),
#ifdef WITH_SELINUX
" -Z, --selinux-user new SELinux user mapping for the user account\n"
_(" -Z, --selinux-user new SELinux user mapping for the user account\n")
#else
""
#endif
"\n"), stderr);
);
exit (E_USAGE);
}