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.outand 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 ArgumentActionpublic void onAttach(Argument arg)
onAttach in interface ArgumentActionpublic boolean consumeArgument()
consumeArgument in interface ArgumentActionCopyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.