diff --git a/src/cligen/flag.cr b/src/cligen/flag.cr index c666f05..cd3a892 100644 --- a/src/cligen/flag.cr +++ b/src/cligen/flag.cr @@ -79,7 +79,10 @@ module CliGen argv.each do |arg| break if arg.flag? unless @format.nil? - break unless arg.value =~ @format + unless arg.value =~ @format + puts "DEBUG : Flag({{T}}, long: #{@long_key}) : #{arg.value} was not found to be matching the defined filter #{@format}. So breaking from parse loop" if ENV["DEBUG"] + break + end end {% if elem == Int32 %} abort "ERROR : Flag({{T}}) : Provided arguemnt(#{arg.value}) was not an integer" unless arg.int?