org.apache.commons.cli2
Interface Parent
- All Superinterfaces:
- Option
- All Known Implementing Classes:
- Command, DefaultOption, ParentImpl, Switch
public interface Parent
- extends Option
An Option that can have an argument and/or group of child Options in the form
"-f <arg> [-a|-b|-c]".
Methods inherited from interface org.apache.commons.cli2.Option |
appendUsage, canProcess, canProcess, defaults, findOption, getDescription, getId, getParent, getPreferredName, getPrefixes, getTriggers, helpLines, isRequired, process, setParent, validate |
processParent
void processParent(WriteableCommandLine commandLine,
ListIterator args)
throws OptionException
- Processes the parent part of the Option. The combination of parent,
argument and children is handled by the process method.
- Parameters:
commandLine
- the CommandLine to write results toargs
- a ListIterator over argument strings positioned at the next
argument to process
- Throws:
OptionException
- if an error occurs while processing- See Also:
Option.process(WriteableCommandLine, ListIterator)
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.