• Displays help text for commands in a pretty format.

    Parameters

    • commandName: undefined | string

      Optional name of command to show help for

    • commands: Command[]

      Array of available commands

    Returns void

    const commands: Command[] = [{
    name: 'build',
    description: '🏗️ Build the project'
    }];

    // Show general help
    printHelp(undefined, commands);

    // Show help for specific command
    printHelp('build', commands);