summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 5758b46..59a6b38 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -330,6 +330,25 @@ static void parse_opts(int argc, char **argv)
break;
}
+ /* verify if multiple modes have been supplied */
+ switch (c) {
+ case 'l':
+ case 'i':
+ case 'g':
+ case 'L':
+ case 'a':
+ case 'r':
+ case 'R':
+ if (cmd != CMD_NONE) {
+ printf("ERROR: A mode has already been supplied. Multiple modes are not supported.\n");
+ print_usage(argc, argv);
+ exit(2);
+ }
+ break;
+ default:
+ break;
+ }
+
switch (c) {
case 'h':
print_usage(argc, argv);