Added a LightOptionParser.parseOptions overload that accepts String[].

This commit is contained in:
Jonathan Bernard 2014-10-29 19:33:04 -05:00
parent 4ab4e5876b
commit 14332b878c
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#Tue, 28 Oct 2014 01:58:09 -0500 #Wed, 29 Oct 2014 19:31:44 -0500
name=jdb-util name=jdb-util
version=3.0 version=3.1
lib.local=true lib.local=true
build.number=1 build.number=0

View File

@ -9,7 +9,10 @@ package com.jdbernard.util
public class LightOptionParser { 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<String>) }
public static def parseOptions(def optionDefinitions, List<String> args) {
def returnOpts = [args:[]] def returnOpts = [args:[]]