Skip to content

dartdoc help output is hard to read #2350

@mit-mit

Description

@mit-mit

dartdoc --help prints it's output in a very very narrow column, which is unaffected by the console width:

Screenshot 2020-09-16 at 11 33 33

I'd expect the output to be wrapped to fit in the width of the terminal, not a preset (very small) hardcoded width.

We have an API for getting the terminal width: https://api.dart.dev/stable/2.9.1/dart-io/Stdout/terminalColumns.html
For a similar change we made recently, see https://dart-review.googlesource.com/c/sdk/+/158400.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions