summaryrefslogtreecommitdiff
path: root/bin/multi-ping
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 12:36:53 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 12:36:53 +0000
commit0e158a3b400c324e35e0617d04508f375a86c633 (patch)
tree863748360ca739d476956eaded84f3bd134dbe7e /bin/multi-ping
parenta763bc51e8cee9a1ab972e39616275f527192454 (diff)
Use long-names
Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop
Diffstat (limited to 'bin/multi-ping')
-rwxr-xr-xbin/multi-ping2
1 files changed, 1 insertions, 1 deletions
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