aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorMaximilian Meister <mmeister@suse.de>2017-08-11 19:29:05 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-08-11 19:29:05 +0800
commit2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e (patch)
treefe732b8be4c6ec4fb11ed78078b54144fcb4affc /cmd/geth/main.go
parent73c5aba21fcca1bf1f78e94d88920fde6762be9e (diff)
downloaddexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar.gz
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar.bz2
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar.lz
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar.xz
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.tar.zst
dexon-2b422b1a47e9b2a0f3d7ecf7063eef2e59cc082e.zip
cmd/geth, cmd/swarm: sort commands and flags by name (#3462)
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go2
1 files changed, 2 insertions, 0 deletions
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...)