Class CommandParser.DefaultCommandParser

java.lang.Object
org.springframework.shell.command.CommandParser.DefaultCommandParser
All Implemented Interfaces:
CommandParser
Enclosing interface:
CommandParser

public static class CommandParser.DefaultCommandParser extends Object implements CommandParser
Default implementation of a CommandParser.
  • Method Details

    • parse

      public CommandParser.CommandParserResults parse(List<CommandOption> options, String[] args)
      Description copied from interface: CommandParser
      Parse options with a given arguments. May throw various runtime exceptions depending how parser is configure. For example if required option is missing an exception is thrown.
      Specified by:
      parse in interface CommandParser
      Parameters:
      options - the command options
      args - the arguments
      Returns:
      parsed results