1
0
mirror of https://github.com/golang/go synced 2024-11-17 12:54:47 -07:00

cmd/dist: keep flag list sorted

force before no-*

Change-Id: Ia1273cd676f8fe7d116e84db2d33728561e7b17e
Reviewed-on: https://go-review.googlesource.com/c/go/+/464136
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
This commit is contained in:
Russ Cox 2023-01-27 16:34:00 -05:00
parent 1c4cfb92d1
commit 45bee5e72b

View File

@ -1287,14 +1287,12 @@ func cmdbootstrap() {
timelog("start", "dist bootstrap")
defer timelog("end", "dist bootstrap")
var noBanner, noClean bool
var debug bool
var force bool
var debug, force, noBanner, noClean bool
flag.BoolVar(&rebuildall, "a", rebuildall, "rebuild all")
flag.BoolVar(&debug, "d", debug, "enable debugging of bootstrap process")
flag.BoolVar(&force, "force", force, "build even if the port is marked as broken")
flag.BoolVar(&noBanner, "no-banner", noBanner, "do not print banner")
flag.BoolVar(&noClean, "no-clean", noClean, "print deprecation warning")
flag.BoolVar(&force, "force", force, "build even if the port is marked as broken")
xflagparse(0)