mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-16 16:26:47 -06:00
terncli: make help message more legible
This commit is contained in:
@@ -58,8 +58,12 @@ func usage() {
|
|||||||
commandsStrs = append(commandsStrs, c)
|
commandsStrs = append(commandsStrs, c)
|
||||||
}
|
}
|
||||||
slices.Sort(commandsStrs)
|
slices.Sort(commandsStrs)
|
||||||
fmt.Fprintf(os.Stderr, "Usage: %v %v\n\n", os.Args[0], strings.Join(commandsStrs, "|"))
|
fmt.Fprintf(os.Stderr, "Usage: %v <command> [options]\n\n", os.Args[0])
|
||||||
fmt.Fprintf(os.Stderr, "Global options:\n\n")
|
fmt.Fprintf(os.Stderr, "Commands:\n")
|
||||||
|
for _, cmd := range commandsStrs {
|
||||||
|
fmt.Fprintf(os.Stderr, " %s\n", cmd)
|
||||||
|
}
|
||||||
|
fmt.Fprintf(os.Stderr, "\nGlobal options:\n")
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user