public class PrintAndExitAction extends Object implements ArgumentAction
VersionArgumentAction
.Constructor and Description |
---|
PrintAndExitAction(String message) |
Modifier and Type | Method and Description |
---|---|
boolean |
consumeArgument() |
void |
onAttach(Argument arg) |
void |
run(ArgumentParser parser,
Argument arg,
Map<String,Object> attrs,
String flag,
Object value)
Prints the message to
System.out and terminates the program with
the exit code 0. |
public PrintAndExitAction(String message)
public void run(ArgumentParser parser, Argument arg, Map<String,Object> attrs, String flag, Object value)
System.out
and terminates the program with
the exit code 0. All the parameters are ignored.run
in interface ArgumentAction
public void onAttach(Argument arg)
onAttach
in interface ArgumentAction
public boolean consumeArgument()
consumeArgument
in interface ArgumentAction
Copyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.