File tree Expand file tree Collapse file tree
src/test/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 * version 1.1, a copy of which has been included with this distribution in
66 * the LICENSE file.
77 *
8- * $Id: BugsTest.java,v 1.14 2003/01/16 21:37:10 jkeyes Exp $
8+ * $Id: BugsTest.java,v 1.15 2003/01/16 23:06:52 jkeyes Exp $
99 */
1010
1111package org .apache .commons .cli ;
@@ -374,4 +374,14 @@ public void test15046() throws Exception {
374374 assertTrue ( !line .hasOption ("c" ) );
375375 }
376376
377+ public void test15648 () throws Exception {
378+ CommandLineParser parser = new PosixParser ();
379+ final String [] args = new String [] { "-m" , "\" Two Words\" " };
380+ Option m = OptionBuilder .hasArgs ().create ("m" );
381+ Options options = new Options ();
382+ options .addOption ( m );
383+ CommandLine line = parser .parse ( options , args );
384+ assertEquals ( "\" Two Words\" " , line .getOptionValue ( "m" ) );
385+ }
386+
377387}
You can’t perform that action at this time.
0 commit comments