Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_content_width doesn't affect command short help? #322

Closed
nprintz opened this issue Apr 7, 2015 · 4 comments
Closed

max_content_width doesn't affect command short help? #322

nprintz opened this issue Apr 7, 2015 · 4 comments

Comments

@nprintz
Copy link

nprintz commented Apr 7, 2015

The max_content_width option is handy to adjust the size of the help output, however I don't think the command short help is being affected by this parameter. It appears to still be truncated with an ellipsis at the 78 character mark.

Here's some example output, with diff_config being truncated, even though it would fit in my max_content_width setting of 120 characters:

Usage: jaide [OPTIONS] COMMAND [ARGS]...

  Manipulate one or more Junos devices.

  Will connect to one or more Junos devices, and manipulate them based on the command you have chosen. If a comma
  separated list or a file containing IP/hostnames on each line is given for the IP option, the commands will be
  carried out simultaneously to each device.

Options:
  --version                       Show the version and exit.
  -h, --help                      Show this message and exit.

Commands:
  commit       Execute a commit against the device.
  compare      Run 'show | compare' for set commands.
  diff_config  Compare the configuration differences between...
  errors       Get any interface errors from the device.

[truncated for brevity]
@nosmas
Copy link

nosmas commented Nov 8, 2016

did you figure this out? I also don't like the fact that help is truncated for commands but not options

@nosmas
Copy link

nosmas commented Nov 8, 2016

looks like it is fixed to 45 characters and cannot be changed. :( I manually changed the source code and now it works.

@jcrotts
Copy link
Contributor

jcrotts commented May 15, 2018

It looks like #1002 will resolve this.

@dsully
Copy link
Contributor

dsully commented May 15, 2018

Merged #1002

@dsully dsully closed this as completed May 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants