Repository navigation
[tool]--wrap-column flag has no effect #36484
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Related: #23074.
In the following, there is no wrapping of the option description.
> flutter help --wrap-column=80 --verbose | grep column
--wrap-column Sets the output wrap column. If not set, uses the width of the terminal. No wrapping occurs if not writing to a terminal. Use --no-wrap to turn off wrapping when connected to a terminal.
I was expecting option descriptions to be wrapped nicely to the specified column. So something like the following.
--wrap-column Sets the output wrap column. If not set, uses
the width of the terminal. No wrapping occurs
if not writing to a terminal. Use --no-wrap to
turn off wrapping when connected to a terminal.
Nor does flutter help --wrap --wrap-column=80 --verbose | less work.
My environment is as follows.
> flutter --version
Flutter 1.7.8+hotfix.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b712a172f9 (9 days ago) • 2019-07-09 13:14:38 -0700
Engine • revision 54ad777fd2
Tools • Dart 2.4.0
I am using bash in Terminal.app.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Activity
zanderso commentedon Jun 18, 2020
@jonahwilliams Did #58875 help with this?
jonahwilliams commentedon Aug 13, 2020
Based on the large number of build breakages and flakes in the last few weeks that I've had to investigate, there is a good chance my next few weeks will be similarly occupied. I'm tentatively pushing this to Q4 since there is a good chance I will not get to it in time.
natebosch commentedon Aug 13, 2020
That does not look very easy to do with the args package. Filed dart-lang/core#55 since I think we will need something changed there before this can be fixed reasonably.
@jonahwilliams if you have any suggestions on the API let me know.
maheshj01 commentedon Jul 12, 2022
Still reproduces as of latest stable 3.0.4 and master 3.1.0, The terminal output takes up the entire width regardless of
--wrap-columnflutter doctor -v (mac)
[-]--wrap-column has no effect[/-][+][tool]`--wrap-column` flag has no effect[/+]3 remaining items
flutter-triage-bot commentedon Nov 3, 2025
This issue is assigned to @bkonyi but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
flutter-triage-bot commentedon Nov 18, 2025
This issue is assigned to @bkonyi but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
flutter-triage-bot commentedon Jan 26, 2026
This issue was assigned to @bkonyi but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.
[flutter_tools] Update argParser usageLineLength when --wrap-column i…
github-actions commentedon Sep 3, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.