Skip to content

Show an arbitrary banner message (Feature request) #78

@rstacruz

Description

@rstacruz

Something like:

require('commander')
  .banner("Output options:")
  .option("-o, --output <path>", "Write to path")
  .option("--debug", "Write debug info to file")
  .banner("Style options:")
  .option("--red", "Choose the red style")
  .option("--blue", "Choose the blue style")
  .option("--green", "Choose the green style")

Expected output:

  Usage: foobar [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number

  Output options:

    -o, --output <path>    Write to path
    --debug                Write debug info to file

  Style options:

    --red                  Choose the red style
    --green                Choose the green style
    --blue                 Choose the blue style

aka, "option groups" or "banners" or "messages" (adding this in for anyone searching issues :-) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions