ref: a3eb287044509203ecda26edad9c9c7d7651d0ca
parent: f4a56de4df8172d7291e9b05a7e1cf4d07c0be89
author: bentley <[email protected]>
date: Sun Jan 17 10:35:02 EST 2010
rgblib: fix usage information, make it match the rest of rgbds
--- a/src/lib/main.c
+++ b/src/lib/main.c
@@ -15,15 +15,11 @@
*
*/
-void
-PrintUsage(void)
+static void
+usage(void)
{
- printf("RGBLib v" LIB_VERSION " (part of ASMotor " ASMOTOR_VERSION ")\n\n"
- "Usage: rgblib library command [module1 module2 ... modulen]\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");
+ printf("RGBLib v" LIB_VERSION " (part of ASMotor " ASMOTOR_VERSION ")\n\n");
+ printf("usage: rgblib file [add | delete | extract | list] [module ...]\n");
exit(EX_USAGE);
}
/*
@@ -112,9 +108,9 @@
l = l->pNext;
}
} else
- PrintUsage();
+ usage();
} else
- PrintUsage();
+ usage();
return (0);
}