Sha256: 0f5708a25cd721eedb40f77ce58e168e520141aad6d2236ae1b4c5c9671262a6
Contents?: true
Size: 536 Bytes
Versions: 23
Compression:
Stored size: 536 Bytes
Contents
module GLI module Commands module HelpModules # Handles wrapping text class ArgNameFormatter def format(arguments_description,arguments_options) return '' if String(arguments_description).strip == '' desc = arguments_description if arguments_options.include? :optional desc = "[#{desc}]" end if arguments_options.include? :multiple desc = "#{desc}[, #{desc}]*" end " " + desc end end end end end
Version data entries
23 entries across 23 versions & 2 rubygems