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
140 141 142 143 144 145 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 140 def subcommand_name available_subcommands.each do |subcommand| return subcommand if .fetch(subcommand) end nil end |
#subcommands_target_doc ⇒ Object
147 148 149 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 147 def subcommands_target_doc "\n" end |
#target_doc_subcommand_arg ⇒ Object
136 137 138 |
# File 'lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb', line 136 def target_doc_subcommand_arg '(' + available_subcommands.join('|') + ')' end |