lib/codeguard/cli.rb in codeguard-0.1.0 vs lib/codeguard/cli.rb in codeguard-0.2.0
- old
+ new
@@ -1,14 +1,14 @@
module Codeguard
module CLI
- AVAILABLE_OPTIONS = %w(install help diff)
+ AVAILABLE_OPTIONS = %w(install setup help diff)
module_function
def run(*args)
command = args.shift
unless AVAILABLE_OPTIONS.include?(command)
- puts "Invalid option: #{command}"
+ puts "Invalid option: #{command}\n\n" if command
command = :help
end
Codeguard.send(command || :help, *args)
end