dey-examples: adc: fix help output
When not enough arguments are given (this includes using only the '-h' argument for help), show the complete help. Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
parent
a1e84ca437
commit
c9b11f0ded
|
|
@ -196,7 +196,7 @@ int main(int argc, char **argv)
|
|||
int ret, opt, i;
|
||||
|
||||
if (argc <= 2) {
|
||||
show_usage(0);
|
||||
show_usage(1);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue