1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-02 10:17:10 +08:00

Add logic for copying ShortDes to LongDesc if it is not present

This is the best place for inserting it that I found.

Test in #2648 should be modified to run `Root.ProcessHelp()`.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera
2016-05-14 12:56:58 +02:00
parent d183e343bb
commit 7f61b3170f
3 changed files with 59 additions and 0 deletions

View File

@ -153,6 +153,7 @@ var rootROSubcommands = map[string]*cmds.Command{
}
func init() {
Root.ProcessHelp()
*RootRO = *Root
// sanitize readonly refs command