diff --git a/sdk/documize/main.go b/sdk/documize/main.go index a34c52fc..02d022ad 100644 --- a/sdk/documize/main.go +++ b/sdk/documize/main.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -30,7 +30,10 @@ func main() { flagSet.String("folder", "", "the Documize folder to use"), flagSet.String("action", "load", "the Documize action to take") - flagSet.Parse(os.Args[1:]) + if err := flagSet.Parse(os.Args[1:]); err != nil { + fmt.Println("unable to parse Documize arguments:", err) + os.Exit(1) + } if *url == "" { fmt.Println("Please set the environment variable DOCUMIZEAPI or use the -api flag")