36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/enzyme.rb', line 36
def help
ARGV.reject { |x| x.start_with?("-") }
command = ARGV.shift
info
if command
if @@commands.include?(command.to_s.downcase)
@@commands[command.to_s.downcase][:help].call
else
error("No help available for `#{name}`.")
end
else
puts 'USAGE'
puts '-----'
puts ''
puts '### Commands'
puts ''
puts ' enzyme config [<key> [<value> [--global]]]'
puts ' enzyme create <project_name> [pms | koi]'
puts ' enzyme sync [<project_name>]'
puts ''
puts '### Help'
puts ''
puts ' enzyme help [<command>]'
puts ' enzyme [<command>] --help'
puts ' enzyme [<command>] -h'
puts ''
puts '### Debugging'
puts ''
puts 'Use `--trace` at anytime to get full stacktraces.'
puts ''
end
end
|