mirror of https://github.com/docker/docs.git
Add unknown command help
Spits out "machine: '<command>' is not a machine command see 'machine --help'" to be inline with Docker Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
This commit is contained in:
parent
e1da47b7ca
commit
c8b36dfbfc
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