Added debug message to print out a missing match + the format being matched
This commit is contained in:
+4
-1
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user