require 'hieracles/optparse' module Hieracles module Options class Ppdb < Hieracles::Optparse def available_options { version: { has_arg: false, aliases: ['v', 'version'] }, format: { has_arg: true, aliases: ['f', 'format'] } } end def self.usage return <<-END Usage: ppdb [extra_args] Available commands: node info node facts node resources facts same factnames res[ources] query following the form: type=sometype title=what type=sometype or type=another type~someregexp type!~excluded END end end end end