Class CmdLnResult

java.lang.Object
com.Ostermiller.util.CmdLnResult

public class CmdLnResult extends Object
Result when a command line option is found. Contains the original option and all of its arguments. More information about this class and code samples for suggested use are available from ostermiller.org.
Since:
ostermillerutils 1.07.00
Author:
Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities
  • Method Details

    • getOption

      public CmdLnOption getOption()
      Returns:
      the option that caused this result
      Since:
      ostermillerutils 1.07.00
    • getArgumentCount

      public int getArgumentCount()
      Get the argument count for this option
      Returns:
      number of arguments
      Since:
      ostermillerutils 1.07.00
    • getArguments

      public List<String> getArguments()
      Get all the arguments, in the order that they were specified.
      Returns:
      unmodifiable list of arguments or null if none
      Since:
      ostermillerutils 1.07.00
    • getArgument

      public String getArgument()
      get the first argument, or null if no arguments
      Returns:
      first argument
      Since:
      ostermillerutils 1.07.00