Skip to content

Commit efcbdb6

Browse files
committed
tools: Print error and exit if invalid command is passed to idevicesyslog
1 parent 967fa8a commit efcbdb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/idevicesyslog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,9 @@ int main(int argc, char *argv[])
12241224
fclose(outf);
12251225
}
12261226
return 0;
1227+
} else {
1228+
fprintf(stderr, "Unknown command '%s'. See --help for valid commands.\n", argv[0]);
1229+
return 1;
12271230
}
12281231
}
12291232

0 commit comments

Comments
 (0)