projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc2873
)
gpiodetect: handle unrecognized options
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Fri, 6 Jan 2017 14:29:02 +0000
(15:29 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Fri, 6 Jan 2017 14:29:02 +0000
(15:29 +0100)
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
gpiodetect.c
patch
|
blob
|
history
diff --git
a/gpiodetect.c
b/gpiodetect.c
index 8d5821947ae2abafc628183f16b6cdf8871b7d44..a5b87f37bd9c29bc5f7e824b8ff65ab710debcae 100644
(file)
--- a/
gpiodetect.c
+++ b/
gpiodetect.c
@@
-40,6
+40,10
@@
int main(int argc, char **argv)
printf("Usage: %s\n", get_progname());
printf("List all GPIO chips\n");
exit(EXIT_SUCCESS);
+ case '?':
+ die("try %s --help", get_progname());
+ default:
+ abort();
}
}