From a57e596a6230a7ba25a96bc4d487ee9f95d1a094 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 22 Mar 2019 13:08:32 -0600 Subject: [PATCH] Add -h flag to show help --- src/spectator/command_line_arguments_config_source.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spectator/command_line_arguments_config_source.cr b/src/spectator/command_line_arguments_config_source.cr index 54ff354..079c3fc 100644 --- a/src/spectator/command_line_arguments_config_source.cr +++ b/src/spectator/command_line_arguments_config_source.cr @@ -15,6 +15,7 @@ module Spectator OptionParser.parse(@args) do |parser| parser.on("-v", "--verbose", "Verbose output using document formatter") { builder.formatter = Formatting::DocumentFormatter.new } parser.on("-f", "--fail-fast", "Stop testing on first failure") { builder.fail_fast } + parser.on("-h", "--help", "Show this help") { puts parser; exit } end end end