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[]) fclose(outf); } return 0; + } else { + fprintf(stderr, "Unknown command '%s'. See --help for valid commands.\n", argv[0]); + return 1; } } |