Sha256: 1dcacf748414d494dfead66146af75ea9c23a4c3e3a42df0b3f6829516ea8b46
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true class OptionParser # Hack to suppress the completion (except for the -h/--help) which was leading to # unwanted behaviours # See https://github.com/wpscanteam/CMSScanner/issues/2 module Completion class << self alias 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
4 entries across 4 versions & 1 rubygems