module OptionParser::Completion
Hack to suppress the completion (except for the -h/–help) which was leading to unwanted behaviours See github.com/wpscanteam/CMSScanner/issues/2
Public Class Methods
Source
# File lib/opt_parse_validator/hacks.rb, line 12 def candidate(key, icase = false, pat = nil, &block) # Maybe also do this for -v/--version ? key == 'h' ? original_candidate('help', icase, pat, &block) : [] end
rubocop:disable Style/OptionalBooleanParameter
Also aliased as: original_candidate