mirror of
https://github.com/docker/docs.git
synced 2026-04-01 08:48:56 +07:00
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:
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"))
|
||||
|
||||
Reference in New Issue
Block a user