From 6557b71b5d1a751bf7e482f9c58656bff0616167 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 3 Nov 2020 17:59:49 +0000 Subject: Add argument usage test to binary --- longboat | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'longboat') 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! -- cgit v1.2.1