# File lib/hammer_cli/options/normalizers.rb, line 132 def complete(value) ["yes ", "no "] end
# File lib/hammer_cli/options/normalizers.rb, line 117 def description _('One of %s.') % ['true/false', 'yes/no', '1/0'].join(', ') end
# File lib/hammer_cli/options/normalizers.rb, line 121 def format(bool) bool = bool.to_s if bool.downcase.match(/^(true|t|yes|y|1)$/) return true elsif bool.downcase.match(/^(false|f|no|n|0)$/) return false else raise ArgumentError, _('Value must be one of %s.') % ['true/false', 'yes/no', '1/0'].join(', ') end end