Sha256: 22a6ddda70dc7ec4ab9880548b6b0138ede53ba41a0290169147321d75121037
Contents?: true
Size: 483 Bytes
Versions: 13
Compression:
Stored size: 483 Bytes
Contents
class OptionParser # Hack to suppress the completion (expect for the -h/--help) which was leading to # unwanted behaviours # See https://github.com/wpscanteam/CMSScanner/issues/2 module Completion class << self alias_method :original_candidate, :candidate def candidate(key, icase = false, pat = nil, &block) # Maybe also do this for -v/--version ? key == 'h' ? original_candidate('help', icase, pat, &block) : [] end end end end
Version data entries
13 entries across 13 versions & 1 rubygems