commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Heuer <heue...@acm.org>
Subject [CLI1.x] quoted arguments split into multiple values
Date Thu, 12 Mar 2009 17:40:01 GMT
Hello,

With cli 1.1 and the java class wrapped with a bash script, quoted
arguments are split into multiple values.

myclass.sh:

#!/bin/bash

java MyClass $@


e.g.

$ myclass.sh --foo "Foo Bar"


Option foo = ...;
Options options = ...;
CommandLineParser parser = ...;
CommandLine commandLine = parser.parse(options, args);
String value = foo.getValue();
// expected value "Foo Bar", was "Foo"


Is this a problem with cli or with the bash script?

   michael


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message