net.dpml.cli

Interface Parent

All Superinterfaces:
Option
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]".
Version:
@PROJECT-VERSION@
Author:
@PUBLISHER-NAME@

Method Summary

void
processParent(WriteableCommandLine commandLine, ListIterator args)
Processes the parent part of the Option.

Methods inherited from interface net.dpml.cli.Option

appendUsage, canProcess, canProcess, defaults, findOption, getDescription, getId, getPreferredName, getPrefixes, getTriggers, helpLines, isRequired, process, validate

Method Details

processParent

public 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 to
args - a ListIterator over argument strings positioned at the next argument to process
Throws:
OptionException - if an error occurs while processing