From 997538ab586e9b061b33c24f2ddced18a0379826 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 19 Jul 2009 23:11:45 +0200 Subject: scriptreplay: show help text if run with no arguments Signed-off-by: Denys Vlasenko --- util-linux/scriptreplay.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util-linux') diff --git a/util-linux/scriptreplay.c b/util-linux/scriptreplay.c index 6474d38e8..d7e193303 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]) -- cgit v1.2.3