Show usage on invalid command

Instead of instructing to re-run with -h, just show the usage help.

Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
Andreas Färber 2017-05-14 19:47:34 +02:00
parent 32268622d4
commit 9bc231bd38

View File

@ -2235,7 +2235,8 @@ bool handle_command(int argc, char* argv[], CRKScan *pScan)
}
}
} else {
printf("command is invalid, please run %s -h to check usage!\r\n", argv[0]);
printf("command is invalid!\r\n");
usage();
}
return bSuccess;
}