From 52b0ebc6a6e657aad0984243b852a871ab686d5e Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Tue, 11 Jun 2019 10:15:45 -0400 Subject: [PATCH] Fail build if not options passed. --- Build/zAppBuild/build.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Build/zAppBuild/build.groovy b/Build/zAppBuild/build.groovy index 242b272b..376786c7 100644 --- a/Build/zAppBuild/build.groovy +++ b/Build/zAppBuild/build.groovy @@ -179,12 +179,15 @@ options: cli.help(longOpt:'help', 'Prints this message') def opts = cli.parse(args) + if (!opts) { + System.exit(1) + } if(opts.v && args.size() > 1) println "** Input args = ${args[1..-1].join(' ')}" // if help option used, print usage and exit - if (opts.help) { + if (opts.help) { cli.usage() System.exit(0) }