diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-11-03 17:59:49 +0000 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-11-03 17:59:49 +0000 |
commit | 6557b71b5d1a751bf7e482f9c58656bff0616167 (patch) | |
tree | 0c81f3a34e73f953f65f370e030cf9c844741f3b | |
parent | 5af5a46bc6a96520ad18da0c6b42c6a0f523fcbb (diff) |
Add argument usage test to binary
-rwxr-xr-x | longboat | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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! |