Uses of Class
net.sourceforge.argparse4j.inf.ArgumentParserException
Packages that use ArgumentParserException
Package
Description
-
Uses of ArgumentParserException in net.sourceforge.argparse4j.ext.java7
Methods in net.sourceforge.argparse4j.ext.java7 that throw ArgumentParserExceptionModifier and TypeMethodDescriptionPathArgumentType.convert
(ArgumentParser parser, Argument arg, String value) -
Uses of ArgumentParserException in net.sourceforge.argparse4j.helper
Subclasses of ArgumentParserException in net.sourceforge.argparse4j.helperModifier and TypeClassDescriptionclass
HelpScreenException is a subclass of ArgumentParserException. -
Uses of ArgumentParserException in net.sourceforge.argparse4j.impl.action
Methods in net.sourceforge.argparse4j.impl.action that throw ArgumentParserException -
Uses of ArgumentParserException in net.sourceforge.argparse4j.impl.type
Methods in net.sourceforge.argparse4j.impl.type that throw ArgumentParserExceptionModifier and TypeMethodDescriptionBooleanArgumentType.convert
(ArgumentParser parser, Argument arg, String value) CaseInsensitiveEnumArgumentType.convert
(ArgumentParser parser, Argument arg, String value) ConstructorArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Deprecated.EnumArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Deprecated.EnumStringArgumentType.convert
(ArgumentParser parser, Argument arg, String value) FileArgumentType.convert
(ArgumentParser parser, Argument arg, String value) ReflectArgumentType.convert
(ArgumentParser parser, Argument arg, String value) private T
ReflectArgumentType.convertUsingConstructor
(ArgumentParser parser, Argument arg, String value) private void
ReflectArgumentType.throwArgumentParserException
(ArgumentParser parser, Argument arg, String value, Throwable t) private void
FileVerification.throwException
(ArgumentParser parser, Argument arg, File file, String messageKey) void
FileVerification.verify
(ArgumentParser parser, Argument arg, File file) void
FileVerificationStep.verify()
private void
FileVerification.verifyCanCreate
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanExecute
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanRead
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanWrite
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanWriteParent
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyExists
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsAbsolute
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsDirectory
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsFile
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyNotExists
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyPermissions
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyPresenceAndType
(ArgumentParser parser, Argument arg, File file) private boolean
FileVerification.verifyStep
(FileVerificationStep step) -
Uses of ArgumentParserException in net.sourceforge.argparse4j.inf
Methods in net.sourceforge.argparse4j.inf with parameters of type ArgumentParserExceptionModifier and TypeMethodDescriptionvoid
ArgumentParser.handleError
(ArgumentParserException e) Prints usage and error message.void
ArgumentParser.handleError
(ArgumentParserException e, PrintWriter writer) Prints usage and error message to the given writer.Methods in net.sourceforge.argparse4j.inf that throw ArgumentParserExceptionModifier and TypeMethodDescriptionArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Convertsvalue
to appropriate type.Parses command line arguments.void
Parses command line arguments.void
Parses command line arguments.void
Parses command line arguments.ArgumentParser.parseKnownArgs
(String[] args, List<String> unknown) Just likeArgumentParser.parseArgs(String[])
, but parses only known arguments without throwing exception for unrecognized arguments.void
ArgumentParser.parseKnownArgs
(String[] args, List<String> unknown, Object userData) Just likeArgumentParser.parseArgs(String[], Object)
, but parses only known arguments without throwing exception for unrecognized arguments.void
Just likeArgumentParser.parseArgs(String[], Map)
, but parses only known arguments without throwing exception for unrecognized arguments.void
ArgumentParser.parseKnownArgs
(String[] args, List<String> unknown, Map<String, Object> attrs, Object userData) Just likeArgumentParser.parseArgs(String[], Map, Object)
, but parses only known arguments without throwing exception for unrecognized arguments.void
ArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) Deprecated.Does not provide the flexibility to let the parser and/or argument decide how the value is stored.default void
ArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) Executes this action. -
Uses of ArgumentParserException in net.sourceforge.argparse4j.internal
Subclasses of ArgumentParserException in net.sourceforge.argparse4j.internalModifier and TypeClassDescriptionclass
Exception thrown when unrecognized argument is encountered.class
Exception thrown when unrecognized command is encountered.Fields in net.sourceforge.argparse4j.internal declared as ArgumentParserExceptionModifier and TypeFieldDescription(package private) ArgumentParserException
ParseState.deferredException
Deferred exception encountered while parsing.Methods in net.sourceforge.argparse4j.internal with parameters of type ArgumentParserExceptionModifier and TypeMethodDescriptionvoid
ArgumentParserImpl.handleError
(ArgumentParserException e) void
ArgumentParserImpl.handleError
(ArgumentParserException e, PrintWriter writer) void
SubparserImpl.handleError
(ArgumentParserException e) void
SubparserImpl.handleError
(ArgumentParserException e, PrintWriter writer) Methods in net.sourceforge.argparse4j.internal that throw ArgumentParserExceptionModifier and TypeMethodDescriptionprivate void
ArgumentParserImpl.accumulatePositionalArg
(ParseState state, ArgumentImpl arg) This function accumulates arguments for a given positional argument.private void
ArgumentParserImpl.checkMutex
(ArgumentImpl arg, ArgumentImpl[] groupUsed) Check that another option in mutually exclusive group has already been specified.ArgumentImpl.convert
(ArgumentParserImpl parser, String value) private void
ArgumentParserImpl.extendArgs
(ParseState state, String file) Extends arguments by reading additional arguments from file.private boolean
ArgumentParserImpl.flagFound
(ParseState state) Returns true if state.getArg() is flag.(package private) void
SubparsersImpl.parseArg
(ParseState state, Map<String, Object> opts) void
void
void
(package private) void
ArgumentParserImpl.parseArgs
(ParseState state, Map<String, Object> attrs) void
void
void
(package private) void
SubparserImpl.parseArgs
(ParseState state, Map<String, Object> opts) private void
ArgumentParserImpl.parseArgsAtOffsetZero
(String[] args, List<String> unknown, Map<String, Object> attrs) ArgumentParserImpl.parseKnownArgs
(String[] args, List<String> unknown) void
ArgumentParserImpl.parseKnownArgs
(String[] args, List<String> unknown, Object userData) void
void
ArgumentParserImpl.parseKnownArgs
(String[] args, List<String> unknown, Map<String, Object> attrs, Object userData) SubparserImpl.parseKnownArgs
(String[] args, List<String> unknown) void
SubparserImpl.parseKnownArgs
(String[] args, List<String> unknown, Object userData) void
void
SubparserImpl.parseKnownArgs
(String[] args, List<String> unknown, Map<String, Object> attrs, Object userData) private void
ArgumentParserImpl.parseKnownArgsCreatingUnknownIfNeeded
(String[] args, List<String> unknown, Map<String, Object> attrs) private void
ArgumentParserImpl.processArg
(Map<String, Object> res, ParseState state, ArgumentImpl arg, String flag, String embeddedValue) This function only handles a named argument.private void
ArgumentParserImpl.processPositionalArgs
(Map<String, Object> res, ParseState state) This function processes named arguments accumulated in state.private ArgumentImpl
ArgumentParserImpl.resolveNextFlag
(String flag) Returns named argument ArgumentImpl which matches given flag.private SubparserImpl
SubparsersImpl.resolveNextSubparser
(String command) Get next SubparserImpl from given command and state.void
ArgumentImpl.run
(ArgumentParserImpl parser, Map<String, Object> res, String flag, Object value, Consumer<Object> valueSetter)