From 14332b878ce29d57aee9bea47bc4e42ff4555612 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 29 Oct 2014 19:33:04 -0500 Subject: [PATCH] Added a LightOptionParser.parseOptions overload that accepts String[]. --- project.properties | 6 +++--- src/main/com/jdbernard/util/LightOptionParser.groovy | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/project.properties b/project.properties index abe9784..06f4ecc 100644 --- a/project.properties +++ b/project.properties @@ -1,6 +1,6 @@ -#Tue, 28 Oct 2014 01:58:09 -0500 +#Wed, 29 Oct 2014 19:31:44 -0500 name=jdb-util -version=3.0 +version=3.1 lib.local=true -build.number=1 +build.number=0 diff --git a/src/main/com/jdbernard/util/LightOptionParser.groovy b/src/main/com/jdbernard/util/LightOptionParser.groovy index d968c33..381b831 100644 --- a/src/main/com/jdbernard/util/LightOptionParser.groovy +++ b/src/main/com/jdbernard/util/LightOptionParser.groovy @@ -9,7 +9,10 @@ package com.jdbernard.util public class LightOptionParser { - public static def parseOptions(def optionDefinitions, List args) { + public static def parseOptions(def optionDefinitions, String[] args) { + return parseOptions(optionDefinitions, args as List) } + + public static def parseOptions(def optionDefinitions, List args) { def returnOpts = [args:[]]