| | |
| | | public abstract class SecureConnectionCliParser extends SubCommandArgumentParser |
| | | { |
| | | /** |
| | | * The showUsage' global argument. |
| | | * Logger. |
| | | */ |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** |
| | | * The 'showUsage' global argument. |
| | | */ |
| | | protected BooleanArgument showUsageArg = null; |
| | | |
| | |
| | | * look for properties file. |
| | | */ |
| | | protected BooleanArgument noPropertiesFileArg; |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** |
| | | * End Of Line. |
| | | */ |
| | | public static String EOL = System.getProperty("line.separator"); |
| | | |
| | | /** |
| | | * Creates a new instance of this argument parser with no arguments. |
| | |
| | | if (clearArg.isPresent()) |
| | | { |
| | | String bindPasswordValue = clearArg.getValue(); |
| | | if(bindPasswordValue != null && bindPasswordValue.equals("-")) |
| | | if(bindPasswordValue != null && "-".equals(bindPasswordValue)) |
| | | { |
| | | // read the password from the stdin. |
| | | try |
| | |
| | | */ |
| | | public boolean isVerbose() |
| | | { |
| | | if (verboseArg.isPresent()) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return false ; |
| | | } |
| | | return verboseArg.isPresent(); |
| | | } |
| | | |
| | | |