cmd/swarm/swarm-smoke-pss: explain sorting of flags and commands

This commit is contained in:
Rafael Matias 2019-04-09 10:42:47 +02:00
parent aba4eeeb05
commit f68b8a10c1
No known key found for this signature in database
GPG key ID: 1BC39532FB4A2DBD

View file

@ -134,11 +134,13 @@ func main() {
},
{
Name: "all",
Usage: "send and receive raw, sym and asym messages across randome nodes",
Usage: "send and receive raw, sym and asym messages across random nodes",
Action: wrapCliCommand("all", pssAllCheck),
},
}
// Sort flags and commands so that they appear
// ordered when running the help command
sort.Sort(cli.FlagsByName(app.Flags))
sort.Sort(cli.CommandsByName(app.Commands))