diff options
author | 2025-07-11 01:11:36 +0200 | |
---|---|---|
committer | 2025-07-11 01:11:36 +0200 | |
commit | efcbdb6a46df50dafd47d1a4ff42019b044a1ca8 (patch) | |
tree | ea1eeb16a48a4b5b60b106568cc19e9584d1ce1d | |
parent | 967fa8a54d32e36bf87c7c64f3af8203e9405066 (diff) | |
download | libimobiledevice-efcbdb6a46df50dafd47d1a4ff42019b044a1ca8.tar.gz libimobiledevice-efcbdb6a46df50dafd47d1a4ff42019b044a1ca8.tar.bz2 |
tools: Print error and exit if invalid command is passed to idevicesyslog
-rw-r--r-- | tools/idevicesyslog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index dc404b0..c8f4613 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
@@ -1224,6 +1224,9 @@ int main(int argc, char *argv[]) | |||
1224 | fclose(outf); | 1224 | fclose(outf); |
1225 | } | 1225 | } |
1226 | return 0; | 1226 | return 0; |
1227 | } else { | ||
1228 | fprintf(stderr, "Unknown command '%s'. See --help for valid commands.\n", argv[0]); | ||
1229 | return 1; | ||
1227 | } | 1230 | } |
1228 | } | 1231 | } |
1229 | 1232 | ||