Merge pull request #27930 from YuPengZTE/devLogout

Align with other cli descriptions
This commit is contained in:
Doug Davis 2016-11-01 08:39:04 -04:00 committed by GitHub
commit e7e5e6138f
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ func NewLoginCommand(dockerCli *command.DockerCli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "login [OPTIONS] [SERVER]", Use: "login [OPTIONS] [SERVER]",
Short: "Log in to a Docker registry.", Short: "Log in to a Docker registry",
Long: "Log in to a Docker registry.\nIf no server is specified, the default is defined by the daemon.", Long: "Log in to a Docker registry.\nIf no server is specified, the default is defined by the daemon.",
Args: cli.RequiresMaxArgs(1), Args: cli.RequiresMaxArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -15,7 +15,7 @@ import (
func NewLogoutCommand(dockerCli *command.DockerCli) *cobra.Command { func NewLogoutCommand(dockerCli *command.DockerCli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "logout [SERVER]", Use: "logout [SERVER]",
Short: "Log out from a Docker registry.", Short: "Log out from a Docker registry",
Long: "Log out from a Docker registry.\nIf no server is specified, the default is defined by the daemon.", Long: "Log out from a Docker registry.\nIf no server is specified, the default is defined by the daemon.",
Args: cli.RequiresMaxArgs(1), Args: cli.RequiresMaxArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {