scriptreplay: show help text if run with no arguments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d6513cff17
commit
997538ab58
@ -18,6 +18,9 @@ int scriptreplay_main(int argc UNUSED_PARAM, char **argv)
|
||||
unsigned long count;
|
||||
FILE *tfp;
|
||||
|
||||
if (!argv[1])
|
||||
bb_show_usage();
|
||||
|
||||
if (argv[2]) {
|
||||
script = argv[2];
|
||||
if (argv[3])
|
||||
|
Loading…
Reference in New Issue
Block a user