Skip to content

Unwrapping of --help information #441

Closed

Description

@rkadam

Hi There,

I'm finding Click library very useful for developing command line application in Python. One such application that I've developed is Automate Atlassian from Command Line

One slightly annoying thing I've noticed is, --help options are not displayed to length of terminal. I've read about use of \b value, but don't seem that's applicable.

screen shot 2015-10-24 at 4 39 22 pm

Your guidance here will be very helpful.

Thank you,
Raju

Activity

  1. rkadam commented on Oct 24, 2015

    @rkadam
    Author

    Looks like there is already similar bug filed: #204

  2. chris-hailstorm commented on Nov 4, 2015

    @chris-hailstorm

    Try this:

    CONTEXT_SETTINGS = dict(
        max_content_width=400,
    )
    

    Then when you define the command or group, include that setting:

    @click.group(
        chain=False,
        context_settings=CONTEXT_SETTINGS,
        )
    

    This allows the help content to be up to 400 characters wide, and will shrink to the actual screen.

  3. locked as resolved and limited conversation to collaborators on Nov 13, 2020
  4. added
    help output
    on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help output

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions