Module: CLAideCompletion::Prepend

Defined in:
lib/claide_completion.rb

Instance Method Summary collapse

Instance Method Details

#handle_root_options(argv) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/claide_completion.rb', line 14

def handle_root_options(argv)
  return false unless self.class.root_command?
  if argv.flag?('completion-script')
    puts Generator.generate(self.class)
    return true
  end
  super
end