diff options
author | Denys Vlasenko | 2009-07-19 23:11:45 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-19 23:11:45 +0200 |
commit | 997538ab586e9b061b33c24f2ddced18a0379826 (patch) | |
tree | 783aa6b3560e9d60e50fa0a250a9fa737cff4449 /util-linux/scriptreplay.c | |
parent | d6513cff17245c3922452ee8aa99151c8533bace (diff) | |
download | busybox-997538ab586e9b061b33c24f2ddced18a0379826.zip busybox-997538ab586e9b061b33c24f2ddced18a0379826.tar.gz |
scriptreplay: show help text if run with no arguments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/scriptreplay.c')
-rw-r--r-- | util-linux/scriptreplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/scriptreplay.c b/util-linux/scriptreplay.c index 6474d38..d7e1933 100644 --- a/util-linux/scriptreplay.c +++ b/util-linux/scriptreplay.c @@ -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]) |