Skip to content

Commit

Permalink
Merge pull request #896 from djhaskin987/feature/list-package-types
Browse files Browse the repository at this point in the history
List loaded package types on the help screen
  • Loading branch information
jordansissel committed Apr 24, 2015
2 parents 433c0af + 42cdf1a commit 0bc923b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/fpm/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FPM::Command < Clamp::Command
include FPM::Util

def help(*args)
return [
lines = [
"Intro:",
"",
" This is fpm version #{FPM::VERSION}",
Expand All @@ -35,10 +35,14 @@ def help(*args)
" You can find support on irc (#fpm on freenode irc) or via email with",
" fpm-users@googlegroups.com",
"",

# Lastly, include the default help output via Clamp.
super
].join("\n")
"Loaded package types:",
]
FPM::Package.types.each do |name, _|
lines.push(" - #{name}")
end
lines.push("")
lines.push(super)
return lines.join("\n")
end # def help

option "-t", "OUTPUT_TYPE",
Expand Down

0 comments on commit 0bc923b

Please sign in to comment.