module Opal::CLI::Help

Overview

Generates beautifully formatted, styled terminal help screens.

Defined in:

opal/cli/help.cr

Class Method Summary

Class Method Detail

def self.render(app_name : String, command_name : String | Nil, description : String, subcommands : Hash(String, Command), options : Array(Option), arguments : Array(Argument), examples : Array(String) = [] of String) : String #

Legacy / fallback render method for backward compatibility


[View source]
def self.render_command(app_name : String, command : Command, context : Context | Nil = nil) : String #

Primary entrypoint rendering help for a Command object with all rich metadata


[View source]