From 2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e Mon Sep 17 00:00:00 2001 From: Maximilian Meister Date: Fri, 11 Aug 2017 13:29:05 +0200 Subject: cmd/geth, cmd/swarm: sort commands and flags by name (#3462) --- cmd/geth/main.go | 2 ++ cmd/swarm/main.go | 2 ++ 2 files changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 58e949806..66958e34d 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -21,6 +21,7 @@ import ( "fmt" "os" "runtime" + "sort" "strings" "time" @@ -165,6 +166,7 @@ func init() { // See config.go dumpConfigCommand, } + sort.Sort(cli.CommandsByName(app.Commands)) app.Flags = append(app.Flags, nodeFlags...) app.Flags = append(app.Flags, rpcFlags...) diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 449d11f36..603fd9b94 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -25,6 +25,7 @@ import ( "os" "os/signal" "runtime" + "sort" "strconv" "strings" "syscall" @@ -302,6 +303,7 @@ DEPRECATED: use 'swarm db clean'. `, }, } + sort.Sort(cli.CommandsByName(app.Commands)) app.Flags = []cli.Flag{ utils.IdentityFlag, -- cgit v1.2.3