DescriptionDisplay override values in GN args help.
Previously "gn args --list" would display the default value only. Now that we
have default_args in the .gn file, there are more places for the values to come
from and this is confusing (because the default value isn't necessarily what
you get).
This change makes --list display both the current value and the default value,
and the locations of the definitions for each. So when default_args apply, you
can see where the value is set. The same applies to args set in the args.gn
file for a build. It looks like this:
is_debug
Current value = false
From //.gn:15
Overridden from the default = true
From //build/config/BUILDCONFIG.gn:154
The short mode --list --short has changed to list the current value rather than
the default.
Some obsolete help text was updated and some unused Args functions were removed.
BUG=684169, 416139
Review-Url: https://codereview.chromium.org/2651023004
Cr-Commit-Position: refs/heads/master@{#445883}
Committed: https://chromium.googlesource.com/chromium/src/+/9257ae440105ca90bd219517782cf55258fc830c
Patch Set 1 #Patch Set 2 : Fix #
Total comments: 4
Patch Set 3 : Spellinc #
Messages
Total messages: 18 (10 generated)
|