org.springframework.boot.cli.command.options

Class OptionHandler

    • Constructor Detail

      • OptionHandler

        public OptionHandler()
    • Method Detail

      • option

        public joptsimple.OptionSpecBuilder option(String name,
                                                   String description)
      • getParser

        public joptsimple.OptionParser getParser()
      • options

        protected void options()
      • run

        protected ExitStatus run(joptsimple.OptionSet options)
                          throws Exception
        Run the command using the specified parsed OptionSet.
        Parameters:
        options - the parsed option set
        Returns:
        an ExitStatus
        Throws:
        Exception - in case of errors
      • getHelp

        public String getHelp()