changed newLocation option to be new-location in bpmodify am: ab1bac0e12
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2175958 Change-Id: Iaf9cd3874c584caed3ded540e6edcf1ce935a90c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
d121a7b5d4
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ var (
|
||||||
addIdents = new(identSet)
|
addIdents = new(identSet)
|
||||||
removeIdents = new(identSet)
|
removeIdents = new(identSet)
|
||||||
removeProperty = flag.Bool("remove-property", false, "remove the property")
|
removeProperty = flag.Bool("remove-property", false, "remove the property")
|
||||||
moveProperty = flag.Bool("move-property", false, "moves contents of property into newLocation")
|
moveProperty = flag.Bool("move-property", false, "moves contents of property into new-location")
|
||||||
newLocation string
|
newLocation string
|
||||||
setString *string
|
setString *string
|
||||||
addLiteral *string
|
addLiteral *string
|
||||||
|
@ -42,7 +42,7 @@ func init() {
|
||||||
flag.Var(targetedModules, "m", "comma or whitespace separated list of modules on which to operate")
|
flag.Var(targetedModules, "m", "comma or whitespace separated list of modules on which to operate")
|
||||||
flag.Var(targetedProperty, "parameter", "alias to -property=`name`")
|
flag.Var(targetedProperty, "parameter", "alias to -property=`name`")
|
||||||
flag.Var(targetedProperty, "property", "fully qualified `name` of property to modify (default \"deps\")")
|
flag.Var(targetedProperty, "property", "fully qualified `name` of property to modify (default \"deps\")")
|
||||||
flag.StringVar(&newLocation, "newLocation", "", " use with moveProperty to move contents of -property into a property with name newLocation ")
|
flag.StringVar(&newLocation, "new-location", "", " use with moveProperty to move contents of -property into a property with name -new-location ")
|
||||||
flag.Var(addIdents, "a", "comma or whitespace separated list of identifiers to add")
|
flag.Var(addIdents, "a", "comma or whitespace separated list of identifiers to add")
|
||||||
flag.Var(stringPtrFlag{&addLiteral}, "add-literal", "a literal to add")
|
flag.Var(stringPtrFlag{&addLiteral}, "add-literal", "a literal to add")
|
||||||
flag.Var(removeIdents, "r", "comma or whitespace separated list of identifiers to remove")
|
flag.Var(removeIdents, "r", "comma or whitespace separated list of identifiers to remove")
|
||||||
|
@ -375,7 +375,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if *moveProperty && newLocation == "" {
|
if *moveProperty && newLocation == "" {
|
||||||
report(fmt.Errorf("-move-property must specify newLocation"))
|
report(fmt.Errorf("-move-property must specify -new-location"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue