Sha256: 7a80ec2a8ca7f8b00000dc85b22ab09eecda355aad013c82121d5c7c4c1182f9
Contents?: true
Size: 504 Bytes
Versions: 6
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true 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 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
6 entries across 6 versions & 1 rubygems