Class AbstractAuthenticatedCLI

    • Constructor Detail

      • AbstractAuthenticatedCLI

        public AbstractAuthenticatedCLI()
    • Method Detail

      • requireLogin

        protected boolean requireLogin()
        Indicate if the command requires authentication.

        Override this to return true to make authentication required.

        Returns:
        true if login is required, otherwise false
      • processStandardOptions

        protected void processStandardOptions​(org.apache.commons.cli.CommandLine commandLine)
                                       throws org.apache.commons.cli.ParseException
        You must override this method to process any options you added.
        Overrides:
        processStandardOptions in class AbstractCLI
        Throws:
        org.apache.commons.cli.ParseException