Method: PreCommit::Cli#execute_help

Defined in:
lib/pre-commit/cli.rb

#execute_help(*args) ⇒ Object

[View source]

26
27
28
29
30
31
32
33
34
# File 'lib/pre-commit/cli.rb', line 26

def execute_help(*args)
  warn "Unknown parameters: #{args.map(&:inspect) * " "}" unless args.empty?
  warn "Usage: pre-commit install"
  warn "Usage: pre-commit list"
  warn "Usage: pre-commit plugins"
  warn "Usage: pre-commit new plugin-name 'Author Name' author@email 'description of the plugin'"
  warn "Usage: pre-commit <enable|disable> <git|yaml> <checks|warnings> check1 [check2...]"
  args.empty? # return status, it's ok if user requested help
end