01: /*
02: Copyright 2004-2007 Paul R. Holser, Jr. All rights reserved.
03: Licensed under the Academic Free License version 3.0
04: */
05:
06: package joptsimple;
07:
08: /**
09: * How a parser reacts to an argument when it decides that no more options are present.
10: *
11: * @since 1.0
12: * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
13: * @version $Id: NoMoreOptionsParserState.java,v 1.9 2007/04/10 20:06:25 pholser Exp $
14: */
15: class NoMoreOptionsParserState implements OptionParserState {
16: public void handleArgument(OptionParser parser,
17: ArgumentList arguments, OptionSet detectedOptions) {
18:
19: detectedOptions.addNonOptionArgument(arguments.next());
20: }
21: }
|