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.8 2002/10/08 21:24:11 jkeyes Exp $
8+ * $Id: BugsTest.java,v 1.9 2002/10/19 21:18:26 jkeyes Exp $
99 */
1010
1111package org .apache .commons .cli ;
@@ -262,4 +262,20 @@ public void test13425() {
262262 }
263263 fail ( "MissingArgumentException not caught." );
264264 }
265+
266+ public void test13666 () {
267+ Options options = new Options ();
268+ Option dir = OptionBuilder .withDescription ( "dir" )
269+ .hasArg ()
270+ .create ( 'd' );
271+ options .addOption ( dir );
272+ try {
273+ HelpFormatter formatter = new HelpFormatter ();
274+ formatter .printHelp ( "dir" , options );
275+ }
276+ catch ( Exception exp ) {
277+ fail ( "Unexpected Exception: " + exp .getMessage () );
278+ }
279+ }
280+
265281}
You can’t perform that action at this time.
0 commit comments