]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: keep flag list sorted
authorRuss Cox <rsc@golang.org>
Fri, 27 Jan 2023 21:34:00 +0000 (16:34 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 30 Jan 2023 20:09:07 +0000 (20:09 +0000)
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>

src/cmd/dist/build.go

index 72c4c02bf245889b051b50af58a49d2755f25a58..5c1b0fc64dbbf99669882c110773636fbe993b8e 100644 (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)