Class: ListTool::App::VersionCommand
- Inherits:
-
Command
- Object
- Command
- ListTool::App::VersionCommand
show all
- Defined in:
- lib/list_tool/app/commands/version_command.rb
Class Method Summary
collapse
Methods inherited from Command
ensure_existence_of, fail_if_not_an_array, parse_item_number, parse_item_number!, parse_list_number, parse_list_number!, parse_number
Class Method Details
.execute(options, lister) ⇒ Object
15
16
17
|
# File 'lib/list_tool/app/commands/version_command.rb', line 15
def execute options, lister
Printer.print_version
end
|
.help ⇒ Object
19
20
21
|
# File 'lib/list_tool/app/commands/version_command.rb', line 19
def help
" -v, --version\t\t\tPrint version"
end
|
.match?(arg) ⇒ Boolean
7
8
9
|
# File 'lib/list_tool/app/commands/version_command.rb', line 7
def match? arg
['v', '-v', 'version', '--version'].include? arg
end
|
.parse(argv) ⇒ Object
11
12
13
|
# File 'lib/list_tool/app/commands/version_command.rb', line 11
def parse argv
{}
end
|