More explicative --help option.

This commit is contained in:
Andrea Mazzoleni 2011-07-27 18:57:01 +02:00
parent 628fd0e683
commit 9597b32f1a
4 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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");

View file

@ -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]

View file

@ -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]