commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fırat KÜÇÜK" <firatku...@gmail.com>
Subject [CLI] parameter between quotes
Date Thu, 02 Aug 2007 17:54:34 GMT
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
Mime
View raw message