Method: ListTool::App::AddListCommand.parse
- Defined in:
- lib/list_tool/app/commands/add_list_command.rb
.parse(argv) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/list_tool/app/commands/add_list_command.rb', line 11 def parse argv fail_if_not_an_array(argv) name = argv.shift ensure_existence_of("list name" => name) {name: name} end |