Sha256: 8779e45aaa64f5d01a49a9b4cfb075ff7f4852f77457813d872f9d103c2e7745
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 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 # rubocop:disable Style/OptionalBooleanParameter 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:enable Style/OptionalBooleanParameter end end end
Version data entries
4 entries across 4 versions & 1 rubygems