public class Arguments extends Object
Constructor and Description |
---|
Arguments() |
Modifier and Type | Method and Description |
---|---|
String |
getExecString()
Get the value of execution option -e
|
String |
getFileName()
Get the value of file option -f
|
String |
getMain()
Get the value of -main option
|
Map<String,String> |
getVars()
Get the variables
|
boolean |
hasHelpOption()
Test whether help option is set
|
boolean |
hasOfflineOption()
Test whether offline option is set
|
boolean |
hasTraceOption()
Test whether debug option is set
|
boolean |
hasVersionOption()
Test whether version option is set
|
boolean |
parse(String[] args)
Parse the command line arguments
|
void |
printHelp()
Print help information
|
static Arguments |
script(String str) |
public boolean parse(String[] args)
public String getExecString()
public String getFileName()
public String getMain()
public boolean hasVersionOption()
public boolean hasTraceOption()
public boolean hasOfflineOption()
public boolean hasHelpOption()
public void printHelp()
Copyright © 2022 The Apache Software Foundation. All rights reserved.