From 22973c90b089a15b1682ebfefc5cbf1560219ef2 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 2 Dec 2013 20:49:49 +0100 Subject: irecovery: print a message if an unsupported command is entered in interactive mode --- tools/irecovery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') 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); -- cgit v1.1-32-gdbae