mirror of https://github.com/docker/docs.git
Merge pull request #258 from sthulb/unknown-command
Add unknown command help
This commit is contained in:
commit
4c285dcffa
10
commands.go
10
commands.go
|
|
@ -380,6 +380,16 @@ func cmdUrl(c *cli.Context) {
|
|||
fmt.Println(url)
|
||||
}
|
||||
|
||||
func cmdNotFound(c *cli.Context, command string) {
|
||||
log.Fatalf(
|
||||
"%s: '%s' is not a %s command. See '%s --help'.",
|
||||
c.App.Name,
|
||||
command,
|
||||
c.App.Name,
|
||||
c.App.Name,
|
||||
)
|
||||
}
|
||||
|
||||
func getHost(c *cli.Context) *Host {
|
||||
name := c.Args().First()
|
||||
store := NewStore(c.GlobalString("storage-path"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue