Merge "Remove _kwmarker" into main am: c50601abc4
Original change: https://android-review.googlesource.com/c/platform/build/+/2824864 Change-Id: I668458272c7a0bc5a522c273fce9050824d1730e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1d1abfeded
1 changed files with 1 additions and 6 deletions
|
@ -80,23 +80,18 @@ _all_values_schema = {
|
|||
},
|
||||
}
|
||||
|
||||
def flag(name, partitions, default, _kwmarker = (), appends = False):
|
||||
def flag(name, partitions, default, *, appends = False):
|
||||
"""Declare a flag.
|
||||
|
||||
Args:
|
||||
name: name of the flag
|
||||
partitions: the partitions where this should be recorded.
|
||||
default: the default value of the flag.
|
||||
_kwmarker: Used to detect argument misuse.
|
||||
appends: Whether new values should be append (not replace) the old.
|
||||
|
||||
Returns:
|
||||
A dictionary containing the flag declaration.
|
||||
"""
|
||||
|
||||
# If specified, appends must be a keyword value.
|
||||
if _kwmarker != ():
|
||||
fail("Too many positional parameters")
|
||||
if not partitions:
|
||||
fail("At least 1 partition is required")
|
||||
if not name.startswith("RELEASE_"):
|
||||
|
|
Loading…
Reference in a new issue