private void addLdapConnectionArguments(ArgumentGroup argGroup, boolean alwaysSSL) { args = new SecureConnectionCliArgs(alwaysSSL); try { Set<Argument> argSet = args.createGlobalArguments(); for (Argument arg : argSet) { addArgument(arg, argGroup); } } catch (ArgumentException ae) { ae.printStackTrace(); // Should never happen } }
/** * Indicates whether or not the user has indicated that they would like to perform a remote * operation based on the arguments. * * @return true if the user wants to perform a remote operation; false otherwise */ public boolean connectionArgumentsPresent() { return args != null && args.argumentsPresent(); }