Merge pull request #26683 from yuexiao-wang/update-inspect

Modify short and flags for docker inspect
This commit is contained in:
Sebastiaan van Stijn 2016-10-31 13:39:59 -07:00 committed by GitHub
commit 36e66d54c9
1 changed files with 6 additions and 3 deletions

View File

@ -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)