summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-02 20:49:49 +0100
committerGravatar Nikias Bassen2013-12-02 20:49:49 +0100
commit22973c90b089a15b1682ebfefc5cbf1560219ef2 (patch)
treedb32778e5244bfc03099c3f6d9e7da870df62748 /tools
parent380447da66ee832d54bea97c37d0ae8e9f8b68a7 (diff)
downloadlibirecovery-22973c90b089a15b1682ebfefc5cbf1560219ef2.tar.gz
libirecovery-22973c90b089a15b1682ebfefc5cbf1560219ef2.tar.bz2
irecovery: print a message if an unsupported command is entered in interactive mode
Diffstat (limited to 'tools')
-rw-r--r--tools/irecovery.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index a14e2b6..f3f7f39 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -125,7 +125,7 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne
shell_usage();
} else if (!strcmp(cmd, "/upload")) {
char* filename = strtok(NULL, " ");
- debug("Uploading files %s\n", filename);
+ debug("Uploading file %s\n", filename);
if (filename != NULL) {
irecv_send_file(client, filename, 0);
}
@@ -174,6 +174,8 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne
printf("Could not read file '%s'\n", filename);
}
}
+ } else {
+ printf("Unsupported command %s. Use /help to get a list of available commands.\n", cmd);
}
free(action);