Skip to content

When are long_desc shown for switches or flags? #339

@rsanheim

Description

@rsanheim

I know that you can define long_desc for switches and flags like so:

  desc "Quiet mode: don't print anything, and don't auto-update"
  long_desc <<~LONG_DESC
    Quiet mode: don't print anything

    NOTE: this will override verbose mode, and also makes dry-run useless
  LONG_DESC
  switch %i[q quiet], default_value: false

In looking through the various help output code, I don't see where this the long_desc would ever get printed...in particular for global options.

I may just be missing it, or is this something that gli doesn't do currently?

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