diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 59a6b38..04aa858 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -412,7 +412,11 @@ static void parse_opts(int argc, char **argv) | |||
| 412 | } | 412 | } |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | if (optind <= 1 || (argc - optind > 0)) { | 415 | if (cmd == CMD_NONE) { |
| 416 | printf("ERROR: No mode/operation was supplied.\n"); | ||
| 417 | } | ||
| 418 | |||
| 419 | if (cmd == CMD_NONE || optind <= 1 || (argc - optind > 0)) { | ||
| 416 | print_usage(argc, argv); | 420 | print_usage(argc, argv); |
| 417 | exit(2); | 421 | exit(2); |
| 418 | } | 422 | } |
