rgblib: fix usage information, make it match the rest of rgbds

This commit is contained in:
bentley
2010-01-17 15:35:02 -07:00
parent f4a56de4df
commit a3eb287044

View File

@@ -15,15 +15,11 @@
* *
*/ */
void static void
PrintUsage(void) usage(void)
{ {
printf("RGBLib v" LIB_VERSION " (part of ASMotor " ASMOTOR_VERSION ")\n\n" printf("RGBLib v" LIB_VERSION " (part of ASMotor " ASMOTOR_VERSION ")\n\n");
"Usage: rgblib library command [module1 module2 ... modulen]\n" printf("usage: rgblib file [add | delete | extract | list] [module ...]\n");
"Commands:\n\ta\tAdd/replace modules to library\n"
"\td\tDelete modules from library\n"
"\tl\tList library contents\n"
"\tx\tExtract modules from library\n");
exit(EX_USAGE); exit(EX_USAGE);
} }
/* /*
@@ -112,9 +108,9 @@ main(int argc, char *argv[])
l = l->pNext; l = l->pNext;
} }
} else } else
PrintUsage(); usage();
} else } else
PrintUsage(); usage();
return (0); return (0);
} }