Commit 85fd3304 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Display usage on argument errors

Closes #3
parent 3728033e
......@@ -256,8 +256,12 @@ func sshConnect(creds api.Credentials) {
func main() {
// get arguments
kingpin.MustParse(app.Parse(os.Args[1:]))
// Parse arguments
if _, err := app.Parse(os.Args[1:]); err != nil {
app.Usage(os.Args[1:])
fmt.Println("Error:", err)
os.Exit(1)
}
var serviceID = findServiceID()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment