Module: EacRubyUtils::Console::DocoptRunner::SubcommandsSupport::SubcommandArgAsList
- Defined in:
- lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb
Instance Method Summary collapse
Instance Method Details
#subcommand_name ⇒ Object
122 123 124 125 126 127 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 122 def subcommand_name available_subcommands.each do |subcommand| return subcommand if .fetch(subcommand) end nil end |
#subcommands_target_doc ⇒ Object
129 130 131 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 129 def subcommands_target_doc "\n" end |
#target_doc_subcommand_arg ⇒ Object
118 119 120 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 118 def target_doc_subcommand_arg '(' + available_subcommands.join('|') + ')' end |