summaryrefslogtreecommitdiffstats
path: root/tools/idevicesyslog.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2025-07-11 01:11:36 +0200
committerGravatar Nikias Bassen2025-07-11 01:11:36 +0200
commitefcbdb6a46df50dafd47d1a4ff42019b044a1ca8 (patch)
treeea1eeb16a48a4b5b60b106568cc19e9584d1ce1d /tools/idevicesyslog.c
parent967fa8a54d32e36bf87c7c64f3af8203e9405066 (diff)
downloadlibimobiledevice-efcbdb6a46df50dafd47d1a4ff42019b044a1ca8.tar.gz
libimobiledevice-efcbdb6a46df50dafd47d1a4ff42019b044a1ca8.tar.bz2
tools: Print error and exit if invalid command is passed to idevicesyslog
Diffstat (limited to 'tools/idevicesyslog.c')
-rw-r--r--tools/idevicesyslog.c3
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;
}
}