diff --git a/cmd/viewcore/main.go b/cmd/viewcore/main.go
index <HASH>..<HASH> 100644
--- a/cmd/viewcore/main.go
+++ b/cmd/viewcore/main.go
@@ -286,7 +286,13 @@ func runRoot(cmd *cobra.Command, args []string) {
 	// Create a dummy root to run in shell.
 	root := &cobra.Command{}
 	// Make all subcommands of viewcore available in the shell.
-	root.AddCommand(cmd.Commands()...)
+	for _, subcmd := range cmd.Commands() {
+		if subcmd.Name() == "help" {
+			root.SetHelpCommand(subcmd)
+			continue
+		}
+		root.AddCommand(subcmd)
+	}
 	// Also, add exit command to terminate the shell.
 	root.AddCommand(&cobra.Command{
 		Use:     "exit",
cmd/viewcore: dedup 'help' subcommand in interactive mode

Available commands will stop printing 'help' subcommand twice.

Change-Id: Ibf<I>cda<I>a<I>fa6a<I>b8c<I>a<I>f2ec
Reviewed-on: <URL>