cli: Fix logout when specifying a registry

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
Christopher Crone 2020-07-17 16:23:52 +02:00
parent af0417c758
commit d1a929eb7f
2 changed files with 4 additions and 1 deletions

View file

@ -12,7 +12,7 @@ func Command() *cobra.Command {
Use: "logout [SERVER]",
Short: "Log out from a Docker registry or cloud backend",
Long: "Log out from a Docker registry or cloud backend.\nIf no server is specified, the default is defined by the daemon.",
Args: cobra.MaximumNArgs(0),
Args: cobra.MaximumNArgs(1),
RunE: runLogout,
}