summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-21 03:24:47 +0000
committerJim Meyering <jim@meyering.net>1996-04-21 03:24:47 +0000
commit1d2c0959c9c9926f5f45cacf32bf653757917990 (patch)
treea3d5c42ed212a87a65a0ccb653a265c9a1ffa1db
parentfc0f5b45393aece78cf8b584166b6b38074843be (diff)
downloadcoreutils-1d2c0959c9c9926f5f45cacf32bf653757917990.tar.xz
(usage): Improve help message.
Enclose message strings in _(). From Karl Berry.
-rw-r--r--src/chroot.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/chroot.c b/src/chroot.c
index 6e49f09d4..95e68d810 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -1,5 +1,5 @@
/* chroot -- run command or shell with special root directory
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 96 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -31,18 +31,22 @@ static void
usage (int status)
{
if (status != 0)
- fprintf (stderr, "Try `%s --help' for more information.\n",
+ fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
{
- printf ("Usage: %s [OPTION] NEWROOT [COMMAND...]\n", program_name);
- printf ("\
+ printf (_("\
+Usage: %s [OPTION] NEWROOT [COMMAND...]\n
+ or: %s OPTION\n\
+", program_name, program_name);
+ printf (_"\
+Run COMMAND with root directory set to NEWROOT.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
\n\
If no command is given, run ``${SHELL} -i'' (default: /bin/sh).\n\
-");
+"));
}
exit (status);
}