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

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