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

dartdoc help output is hard to read #2350

Closed
mit-mit opened this issue Sep 16, 2020 · 4 comments
Closed

dartdoc help output is hard to read #2350

mit-mit opened this issue Sep 16, 2020 · 4 comments

Comments

@mit-mit
Copy link
Member

mit-mit commented Sep 16, 2020

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.

@kevmoo
Copy link
Member

kevmoo commented Sep 16, 2020

Going to move this to the dartdoc repo...

@kevmoo kevmoo transferred this issue from dart-lang/sdk Sep 16, 2020
@devoncarew
Copy link
Member

Good catch! This was addressed ~12 days ago in the dartdoc repo (#2333). Sam has brought the latest into the sdk repo recently. It may or may not have made the cut for whatever version you were testing.

@mit-mit, can you include the dart version you were using? cc @srawlins

@mit-mit
Copy link
Member Author

mit-mit commented Sep 16, 2020

I'm running pub global run dartdoc --help

@mit-mit
Copy link
Member Author

mit-mit commented Sep 16, 2020

But I had an old activated version. I updated it, and it's working now! Closing.

@mit-mit mit-mit closed this as completed Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants