static void help(void)
{
printf("Usage: accelerometer [options] <device path>\n"
- " --debug debug to stderr\n"
- " --help print this help text\n\n");
+ " -d,--debug debug to stderr\n"
+ " -h,--help print this help text\n\n");
}
int main (int argc, char** argv)
while (1) {
int option;
- option = getopt_long(argc, argv, "dxh", options, NULL);
+ option = getopt_long(argc, argv, "dh", options, NULL);
if (option == -1)
break;