Class: VimGet::Commands::OutdatedCommand

Inherits:
ListCommand show all
Defined in:
lib/vimget/commands/outdated_command.rb

Overview

List all outdated command

Constant Summary

Constants inherited from BaseCommand

BaseCommand::PROGRAM

Instance Attribute Summary

Attributes inherited from BaseCommand

#command, #defaults, #options, #options_group, #program_name, #summary

Instance Method Summary collapse

Methods inherited from ListCommand

#execute

Methods inherited from BaseCommand

#arguments, #execute, #invoke, #show_help

Constructor Details

#initializeOutdatedCommand

Returns a new instance of OutdatedCommand.



21
22
23
24
25
26
# File 'lib/vimget/commands/outdated_command.rb', line 21

def initialize
  super("outdated", "Display all outdated scripts")
  options[:outdated] = true
  remove_option('--outdated')
  remove_option('--installed')
end

Instance Method Details

#usageObject



28
29
30
# File 'lib/vimget/commands/outdated_command.rb', line 28

def usage
  @program_name
end