Skip to content

Commit

Permalink
+ picky generate instead of just picky
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Dec 12, 2010
1 parent 8f54ebc commit 284f8c9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,14 +14,14 @@ def initialize selector

def usage
"\nUsage:\n" +
"picky <command> <params>\n" +
"picky generate <type> <params>\n" +
?\n
end

def possible_commands types
"Possible commands:\n" +
types.map do |name, klass_params|
result = "picky #{name}"
result = "picky generate #{name}"
_, params = *klass_params
result << ' ' << [*params].map { |param| "<#{param}>" }.join(' ') if params
result
Expand Down

0 comments on commit 284f8c9

Please sign in to comment.