X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fudev%2Faccelerometer%2Faccelerometer.c;h=9e2c590c15397e7d712fe065aded050bd31bdf37;hb=62a30b2c490512fe22a4e5faacb1d55763ead1e0;hp=dd4b7dc8a257e43a44f3b900d5bc0cd0570a9083;hpb=25e773eeb4f853804e1bf0dbd9a184f23e9b2a97;p=elogind.git diff --git a/src/udev/accelerometer/accelerometer.c b/src/udev/accelerometer/accelerometer.c index dd4b7dc8a..9e2c590c1 100644 --- a/src/udev/accelerometer/accelerometer.c +++ b/src/udev/accelerometer/accelerometer.c @@ -46,16 +46,10 @@ #include #include -#include #include -#include -#include -#include #include -#include #include #include -#include #include #include "libudev.h" @@ -195,11 +189,13 @@ static void test_orientation(struct udev *udev, puts(text); } -static void help(void) -{ - printf("Usage: accelerometer [options] \n" - " --debug debug to stderr\n" - " --help print this help text\n\n"); +static void help(void) { + + printf("%s [options] \n\n" + "Accelerometer device identification.\n\n" + " -h --help Print this message\n" + " -d --debug Debug to stderr\n" + , program_invocation_short_name); } int main (int argc, char** argv) @@ -229,7 +225,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;