1
0
mirror of https://github.com/rancher/os.git synced 2025-07-30 22:24:33 +00:00

Fixes #151: Better error messages for incorrect use of options

This commit is contained in:
wlan0 2015-05-03 22:43:38 -07:00
parent fdc9463e4c
commit 486cd66d08

View File

@ -144,6 +144,9 @@ func osUpgrade(c *cli.Context) {
log.Fatal("Failed to find latest image")
}
}
if c.Args().Present() {
log.Fatalf("invalid arguments %v", c.Args())
}
startUpgradeContainer(image, c.Bool("stage"), c.Bool("force"), !c.Bool("no-reboot"))
}