You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Fırat KÜÇÜK <fi...@gmail.com> on 2007/08/02 19:54:34 UTC

[CLI] parameter between quotes

Hi,
i want to make an option like:

command -i "bla bla bla bla"

how may i do this?

This is my code:

-----------------------------------------------------

        commandLineOptions.addOption(
            OptionBuilder.withArgName("statement")
                .hasArg().withDescription("interprets quoted string statement")
                .withLongOpt("interpret")
                .withValueSeparator('=')
                .create("i")
        );

----------------------------------------------------



-- 
Öğr. Gör. Fırat KÜÇÜK
ADAMYO Distance Learning
SAKARYA University / TURKEY