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:
parent
fdc9463e4c
commit
486cd66d08
@ -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"))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user