Skip to content

Commit

Permalink
Fail build if not options passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
drbruce-git committed Jun 11, 2019
1 parent b32fbf9 commit 52b0ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Build/zAppBuild/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 52b0ebc

Please sign in to comment.