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
125 126 127 128 129 130 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 125 def subcommand_name available_subcommands.each do |subcommand| return subcommand if .fetch(subcommand) end nil end |
#subcommands_target_doc ⇒ Object
132 133 134 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 132 def subcommands_target_doc "\n" end |
#target_doc_subcommand_arg ⇒ Object
121 122 123 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 121 def target_doc_subcommand_arg '(' + available_subcommands.join('|') + ')' end |