From 9597b32f1abcd182725110ae8a032bacff9b6e64 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 27 Jul 2011 18:57:01 +0200 Subject: [PATCH] More explicative --help option. --- snapraid.1 | 2 +- snapraid.c | 8 +++++++- snapraid.d | 2 +- snapraid.txt | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/snapraid.1 b/snapraid.1 index 421a3ada..9a0e5c99 100644 --- a/snapraid.1 +++ b/snapraid.1 @@ -18,7 +18,7 @@ snapraid [\(hyc, \(hy\(hyconf CONFIG] [\(hyf, \(hy\(hyfilter PATTERN] .PD 0 .PP .PD - COMMAND + sync|diff|check|fix .PD 0 .PP .PD diff --git a/snapraid.c b/snapraid.c index 91e3efc2..a3be979e 100644 --- a/snapraid.c +++ b/snapraid.c @@ -44,7 +44,13 @@ void usage(void) { version(); - printf("Usage: " PACKAGE " [options]\n"); + printf("Usage: " PACKAGE " sync|diff|check|fix [options]\n"); + printf("\n"); + printf("Commands:\n"); + printf(" sync Syncronize the state of the array of disks\n"); + printf(" diff Show the changes that needs to be syncronized\n"); + printf(" check Check the array of disks\n"); + printf(" fix Fix the array of disks\n"); printf("\n"); printf("Options:\n"); printf(" " SWITCH_GETOPT_LONG("-c, --conf FILE ", "-c") " Configuration file (default " CONF ")\n"); diff --git a/snapraid.d b/snapraid.d index a78d83d9..77f482ae 100644 --- a/snapraid.d +++ b/snapraid.d @@ -6,7 +6,7 @@ Synopsis : [-Z, --force-zero] [-E, --force-empty] : [-s, --start BLKSTART] [-t, --count BLKCOUNT] : [-v, --verbose] - : COMMAND + : sync|diff|check|fix :snapraid [-V, --version] [-h, --help] diff --git a/snapraid.txt b/snapraid.txt index d25c21c8..588cd57a 100644 --- a/snapraid.txt +++ b/snapraid.txt @@ -10,7 +10,7 @@ snapraid [-c, --conf CONFIG] [-f, --filter PATTERN] [-Z, --force-zero] [-E, --force-empty] [-s, --start BLKSTART] [-t, --count BLKCOUNT] [-v, --verbose] - COMMAND + sync|diff|check|fix snapraid [-V, --version] [-h, --help]