Repository navigation
Show default flag values for flutter config #81665
Copy link
Copy link
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-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
Use case
Currently, running flutter config lists all available flags, but not its value or default value. For example:
--[no-]enable-web Enable or disable Flutter for web. This setting will take effect on the
master, dev, beta, and stable channels.
setting will take effect on the master, dev, beta, and stable channels.
Newer beta versions are available on the beta channel.
Proposal
Add some text to show the default value of the flag, for example:
--[no-]enable-web Enable or disable Flutter for web. This setting will take effect on the
master, dev, beta, and stable channels.
setting will take effect on the master, dev, beta, and stable channels.
Newer beta versions are available on the beta channel.
Defaults to `false`.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-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
jmagman commentedon May 17, 2021
@Zazo032 If you look at the bottom of the
flutter configoutput you should see the current values of the configs that are set, so you don't need theCurrent value is "true".part (and we wouldn't include that dynamic lookup in help output, which is what the top part is).But fair point about not knowing what the default values are.
pedromassangocode commentedon May 18, 2021
@jmagman should this issue focus on
update the help output to include the default values? I yes, then maybe we need to update the title. Right now I'm not sure what would be the fix for this.[-]Show flag values for `flutter config`[/-][+]Show default flag values for `flutter config`[/+]Zazo032 commentedon May 18, 2021
I updated the issue. Having the default values on each flag description would be perfect, and with them there's no need to also show current values, as @jmagman said
darshankawar commentedon Oct 7, 2022
The original use case occurs using latest versions. Keeping this issue open.
Adds `(defaults to ___)` when using `flutter config --help` (#172329)
Adds `(defaults to ___)` when using `flutter config --help` (flutter#…
github-actions commentedon Aug 5, 2025
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.Adds `(defaults to ___)` when using `flutter config --help` (flutter#…
Adds `(defaults to ___)` when using `flutter config --help` (flutter#…
Adds `(defaults to ___)` when using `flutter config --help` (flutter#…
Adds `(defaults to ___)` when using `flutter config --help` (flutter#…
Adds `(defaults to ___)` when using `flutter config --help` (#172329)