accelerometer: display short options too

This commit is contained in:
Robert Milasan 2014-12-30 18:58:29 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent bdd31644fe
commit fd51179d5c
1 changed files with 2 additions and 2 deletions

View 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)