aboutsummaryrefslogtreecommitdiff
path: root/longboat
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-11-03 17:59:49 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-11-03 17:59:49 +0000
commit6557b71b5d1a751bf7e482f9c58656bff0616167 (patch)
tree0c81f3a34e73f953f65f370e030cf9c844741f3b /longboat
parent5af5a46bc6a96520ad18da0c6b42c6a0f523fcbb (diff)
Add argument usage test to binary
Diffstat (limited to 'longboat')
-rwxr-xr-xlongboat6
1 files changed, 6 insertions, 0 deletions
diff --git a/longboat b/longboat
index 658ec27..cca885a 100755
--- a/longboat
+++ b/longboat
@@ -10,6 +10,12 @@ config = Longboat::Config.parse!
collector = Longboat::Collector.new(config)
raiders = Longboat::Raiders.new(collector, config)
+unless ARGV.empty?
+ puts "Extraneous arguments:"
+ p ARGV
+ exit 1
+end
+
if config.test
# We're in test mode, output metrics to stdout once and quit
raiders.raid!