From fead9fe0f880bab6b10e9cdd07ba7c826ad52fc6 Mon Sep 17 00:00:00 2001 From: Tao Zhou Date: Wed, 2 Aug 2017 09:50:45 +0800 Subject: [PATCH] doc/cli: fix clear-checkpoint command typo --- Documentation/cli/README.md | 4 +++- pkg/terminal/command.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/cli/README.md b/Documentation/cli/README.md index 20a916de05..d689639715 100644 --- a/Documentation/cli/README.md +++ b/Documentation/cli/README.md @@ -84,7 +84,7 @@ Deletes breakpoint. ## clear-checkpoint Deletes checkpoint. - checkpoint + clear-checkpoint Aliases: clearcheck @@ -190,6 +190,8 @@ Print local variables. [goroutine ] [frame ] locals [-v] [] +The name of variables that are shadowed in the current scope will be shown in parenthesis. + If regex is specified only local variables with a name matching it will be returned. If -v is specified more information about each local variable will be shown. diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index 105ff29251..31383599f6 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -169,7 +169,7 @@ If regex is specified only function arguments with a name matching it will be re {aliases: []string{"locals"}, allowedPrefixes: scopePrefix | onPrefix, cmdFn: locals, helpMsg: `Print local variables. [goroutine ] [frame ] locals [-v] [] - + The name of variables that are shadowed in the current scope will be shown in parenthesis. If regex is specified only local variables with a name matching it will be returned. If -v is specified more information about each local variable will be shown.`}, @@ -243,7 +243,7 @@ Specifies that the breakpoint or tracepoint should break only if the boolean exp cmdFn: clearCheckpoint, helpMsg: `Deletes checkpoint. - checkpoint `, + clear-checkpoint `, }) for i := range c.cmds { v := &c.cmds[i]