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:
Diaz de Grenu, Jose 2017-05-29 17:45:10 +02:00
parent a1e84ca437
commit c9b11f0ded
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}