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

improve help text on narrow terminals #140

Merged
merged 8 commits into from
May 14, 2019
Merged

improve help text on narrow terminals #140

merged 8 commits into from
May 14, 2019

Commits on May 14, 2019

  1. help: compact flags

    Instead of aligning flags in columns, display them right next to each other.
    Otherwise, they take up *way* too much space.
    Stebalien authored and hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    31141c7 View commit details
    Browse the repository at this point in the history
  2. wrap synopsys, flag, and argument help text

    We could be fancier and figure out the terminal width but wrapping at a fixed
    80c is a decent start.
    Stebalien authored and hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    70ca134 View commit details
    Browse the repository at this point in the history
  3. help: wrap subcommand help text

    Stebalien authored and hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    d24d87a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2bd0524 View commit details
    Browse the repository at this point in the history
  5. wrap usage text

    Stebalien authored and hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    ec412e7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    abd8def View commit details
    Browse the repository at this point in the history
  7. helptext: lower minimum width to 30, raise width to 100

    Otherwise, `ipfs daemon --help` and `ipfs p2p --help` look terrible.
    Stebalien authored and hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    6a6a6f8 View commit details
    Browse the repository at this point in the history
  8. feat(helptext): detect terminal width

    If the io.writer given to help text is the terminal, read its width. otherwise, use a default.
    hannahhoward committed May 14, 2019
    Configuration menu
    Copy the full SHA
    6a9e61f View commit details
    Browse the repository at this point in the history