From 00355546c42a724d647f978c4fa7cf04d492679e Mon Sep 17 00:00:00 2001 From: Ken-ichi Mito Date: Wed, 5 Mar 2014 06:49:04 +0900 Subject: [PATCH] print usage if no arguments --- misc/httpbench.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/httpbench.pl b/misc/httpbench.pl index c36ed64..78191dd 100755 --- a/misc/httpbench.pl +++ b/misc/httpbench.pl @@ -9,6 +9,8 @@ use Parallel::ForkManager; use LWP::Simple; use Time::HiRes qw(sleep); +usage() if (@ARGV == 0); + GetOptions( 'h|help' => \ my $help, 'i|inputfile=s' => \ my $file, -- 1.7.9.5