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

Inject width via pylib to argparse formatter #5056

Merged
merged 1 commit into from Aug 17, 2019

Commits on Aug 17, 2019

  1. Inject width via pylib to argparse formatter

    `argparse.HelpFormatter` looks at `$COLUMNS` only, falling back to a
    default of 80.
    
    `py.io.get_terminal_width()` is smarter there, and could even work
    better with pytest-dev/py#219.
    
    This ensures to use a consistent value for formatting the ini values etc.
    blueyed committed Aug 17, 2019
    Copy the full SHA
    2a6a1ca View commit details
    Browse the repository at this point in the history