howard-3
howard-3
Yea we probably do that if we don't need to access the type field, but currently we switch on the type info given by the option class. We're looking to...
I can't really show the actual code, but it looks something like this ``` def a = cli.parse(..) a.getOptions().each { def prop = it.getLongOpt(); def type = it.getType(); def val...
Ideally, if we're starting from scratch, we'll use that, but unfortunately the snippet can only run in groovy 3 and we're trying to migrate a lot of code written in...
yea we're still on 2.4, 2.5 has it's own fair share of issues :-|
Interesting, if I switch to use `groovy.util.CliBuilder`, should this work as well? the following doesn't seem to work ``` def cli = new groovy.util.CliBuilder() cli.a(args: 1, longOpt: 'abc', type: double,...
So we use `JsonWriter` class to convert table into Json format. The code is simple 1-liner: ``` new JsonWriter().write(table, new Destination(stringWriter)); ``` However JsonWriter contains a statically created object mapper...