chiark / gitweb /
accelerometer: display short options too
[elogind.git] / src / udev / accelerometer / accelerometer.c
index dd4b7dc8a257e43a44f3b900d5bc0cd0570a9083..9c13d978705f7cf09c2504df87f35d889938e3bd 100644 (file)
@@ -198,8 +198,8 @@ static void test_orientation(struct udev *udev,
 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)
@@ -229,7 +229,7 @@ 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;