mirror of https://github.com/docker/cli.git
Merge pull request #26683 from yuexiao-wang/update-inspect
Modify short and flags for docker inspect
This commit is contained in:
commit
36e66d54c9
|
@ -25,9 +25,12 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
var opts inspectOptions
|
var opts inspectOptions
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "inspect [OPTIONS] CONTAINER|IMAGE|TASK [CONTAINER|IMAGE|TASK...]",
|
Use: "inspect [OPTIONS] NAME|ID [NAME|ID...]",
|
||||||
Short: "Return low-level information on a container, image or task",
|
Short: strings.Join([]string{
|
||||||
Args: cli.RequiresMinArgs(1),
|
"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 {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
opts.ids = args
|
opts.ids = args
|
||||||
return runInspect(dockerCli, opts)
|
return runInspect(dockerCli, opts)
|
||||||
|
|
Loading…
Reference in New Issue