Commit e23b537f authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

Override root command help text

parent 7666f888
......@@ -102,11 +102,8 @@ func createRequest(args []string) (cmds.Request, *cmds.Command, error) {
}
}
// when generating help for the root command, we don't want the autogenerated subcommand text
// (since we have better hand-made subcommand list in the root Help field)
if cmd == nil {
root = &*commands.Root
root.Subcommands = nil
root = commands.Root
}
// generate the help text for the command the user was trying to call (or root)
......
......@@ -14,7 +14,7 @@ type TestOutput struct {
var Root = &cmds.Command{
Description: "Global P2P Merkle-DAG filesystem",
Help: `Basic commands:
SubcommandHelp: `Basic commands:
init Initialize ipfs local configurationx
add <path> Add an object to ipfs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment