mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
catch error in SDK documize command
This commit is contained in:
parent
936b68850e
commit
f462631f83
1 changed files with 6 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue