def self.help(all = false)
puts "Usage: passenger-config <COMMAND> [options]"
puts "Tool for controlling or configurating a #{PROGRAM_NAME} instance or installation."
puts
puts "Management commands:"
puts " detach-process Detach an application process from the process pool"
puts " restart-app Restart an application"
puts
puts "Informational commands:"
puts " validate-install Validate this #{PROGRAM_NAME} installation"
puts " list-instances List running #{PROGRAM_NAME} instances"
puts " about Show information about #{PROGRAM_NAME}"
puts
puts "Miscellaneous commands:"
puts " build-native-support Ensure that the native_support library for the current"
puts " Ruby interpeter is built"
if all
puts " system-metrics Display system metrics"
end
puts
puts "Run 'passenger-config <COMMAND> --help' for more information about each"
puts "command."
if !all
puts
puts "There are also some advanced commands not shown in this help message. Run"
puts "'passenger-config --help-all' to learn more about them."
end
end