From 1d2c0959c9c9926f5f45cacf32bf653757917990 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 21 Apr 1996 03:24:47 +0000 Subject: [PATCH] (usage): Improve help message. Enclose message strings in _(). From Karl Berry. --- src/chroot.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/chroot.c b/src/chroot.c index 6e49f09d49..95e68d810e 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); } -- 2.47.3