From 486cd66d085b6582527bc799527d826632c15614 Mon Sep 17 00:00:00 2001 From: wlan0 Date: Sun, 3 May 2015 22:43:38 -0700 Subject: [PATCH] Fixes #151: Better error messages for incorrect use of options --- cmd/control/os.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/control/os.go b/cmd/control/os.go index 6e8f624d..7fe2b4ee 100644 --- a/cmd/control/os.go +++ b/cmd/control/os.go @@ -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")) }