mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Modify short and flags for docker inspect
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
@@ -25,9 +25,12 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||
var opts inspectOptions
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "inspect [OPTIONS] CONTAINER|IMAGE|TASK [CONTAINER|IMAGE|TASK...]",
|
||||
Short: "Return low-level information on a container, image or task",
|
||||
Args: cli.RequiresMinArgs(1),
|
||||
Use: "inspect [OPTIONS] NAME|ID [NAME|ID...]",
|
||||
Short: strings.Join([]string{
|
||||
"Return low-level information on Docker object(s) (e.g. container, image, volume,",
|
||||
"\nnetwork, node, service, or task) identified by name or ID",
|
||||
}, ""),
|
||||
Args: cli.RequiresMinArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
opts.ids = args
|
||||
return runInspect(dockerCli, opts)
|
||||
|
||||
Reference in New Issue
Block a user