From eaca47f7c697233225beeb55b0e6d96c90fe4fde Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 15 Aug 2011 13:09:42 +0200 Subject: libmount: cut up mount's help text into manageable chunks Signed-off-by: Benno Schulenberg --- libmount/samples/mount.c | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'libmount/samples/mount.c') diff --git a/libmount/samples/mount.c b/libmount/samples/mount.c index 30c2610ed..891c471ed 100644 --- a/libmount/samples/mount.c +++ b/libmount/samples/mount.c @@ -202,43 +202,50 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fprintf(out, _( "\nOptions:\n" " -a, --all mount all filesystems mentioned in fstab\n" - " -f, --fake dry run, skip mount(2) syscall\n" - " -F, --fork fork off for each device (use with -a)\n" - " -h, --help this help\n" - " -n, --no-mtab don't write to /etc/mtab\n" - " -r, --read-only mount the filesystem read-only (same as -o ro)\n" - " -v, --verbose verbose mode\n" - " -V, --version print version string\n" - " -w, --read-write mount the filesystem read-write (default)\n" - " -o, --options comma separated string of mount options\n" - " -O, --test-opts limit the set of filesystems (use with -a)\n" - " -t, --types indicate the filesystem type\n" " -c, --no-canonicalize don't canonicalize paths\n" + " -f, --fake dry run; skip the mount(2) syscall\n" + " -F, --fork fork off for each device (use with -a)\n")); + fprintf(out, _( + " -h, --help display this help text and exit\n" " -i, --internal-only don't call the mount. helpers\n" " -l, --show-labels lists all mounts with LABELs\n" + " -n, --no-mtab don't write to /etc/mtab\n")); + fprintf(out, _( + " -o, --options comma-separated list of mount options\n" + " -O, --test-opts limit the set of filesystems (use with -a)\n" + " -r, --read-only mount the filesystem read-only (same as -o ro)\n" + " -t, --types limit the set of filesystem types\n")); + fprintf(out, _( + " -v, --verbose say what is being done\n" + " -V, --version display version information and exit\n" + " -w, --read-write mount the filesystem read-write (default)\n")); + fprintf(out, _( "\nSource:\n" " -L, --label