From 90070510d4b3913e3f18e05e57c9b5a3170adde5 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:36:53 +0000 Subject: Use long-names Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop --- bin/multi-ping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/multi-ping') diff --git a/bin/multi-ping b/bin/multi-ping index ef14c4c..00ae466 100755 --- a/bin/multi-ping +++ b/bin/multi-ping @@ -106,7 +106,7 @@ hostname = ARGV.shift # Abort if we don't have a hostname # if ( hostname.nil? ) - puts "Usage: #{$0} hostname" + puts "Usage: #{$PROGRAM_NAME} hostname" exit 1 end -- cgit v1.2.1