optimal help info for ctr cli.

Signed-off-by: Jizhong Jiang <jiangjizhong@gmail.com>
This commit is contained in:
Jizhong Jiang 2017-01-25 14:16:13 +08:00
parent 682a37f25c
commit f5615b0225
2 changed files with 7 additions and 5 deletions

View file

@ -9,12 +9,13 @@ import (
)
var deleteCommand = cli.Command{
Name: "delete",
Usage: "delete a process from containerd store",
Name: "delete",
Usage: "delete a process from containerd store",
ArgsUsage: "CONTAINER",
Flags: []cli.Flag{
cli.StringFlag{
Name: "pid, p",
Usage: "new process id",
Usage: "process id to be deleted",
},
},
Action: func(context *cli.Context) error {

View file

@ -10,8 +10,9 @@ import (
)
var inspectCommand = cli.Command{
Name: "inspect",
Usage: "inspect a container",
Name: "inspect",
Usage: "inspect a container",
ArgsUsage: "CONTAINER",
Action: func(context *cli.Context) error {
executionService, err := getExecutionService(context)
if err != nil {