class OptionParser
unofficial embedded gem “makeoptparseworkwell”
:stopdoc:
def alias(from, to) = (dict = topdict(from) and dict[to] = dict[from])
def alias(from, to) = (dict = topdict(from) and dict[to] = dict[from])
def deprecate(from, to) = hidden(from) { abort "#{from} is deprecated. Use #{to}." }
def deprecate(from, to) = hidden(from) { abort "#{from} is deprecated. Use #{to}." }
def hidden(...) = define(...).tap { |sw| def sw.summarize(*) = nil }
:stopdoc:
def hidden(...) = define(...).tap { |sw| def sw.summarize(*) = nil }
def topdict(name) = name.length > 1 ? top.long : top.short
def topdict(name) = name.length > 1 ? top.long : top.short