Class ApplicationArguments

java.lang.Object
com.codename1.backend.ApplicationArguments

public final class ApplicationArguments extends Object
The program's arguments, as Spring Boot parses them: --name=value and --name are options, which may repeat, and everything else is a non-option argument. A lone -- is an argument, not an option.
  • Constructor Details

    • ApplicationArguments

      public ApplicationArguments(String... args)
      Parses args.
      Parameters:
      args - the arguments; null is taken as none
  • Method Details

    • getSourceArgs

      public String[] getSourceArgs()
      The arguments as given.
    • getOptionNames

      public Set<String> getOptionNames()
      The names of the options, in the order they first appear.
    • containsOption

      public boolean containsOption(String name)
      Whether --name was given, with or without a value.
    • getOptionValues

      public List<String> getOptionValues(String name)
      The values given to --name, empty for an option without one, or null when it was not given at all.
    • getNonOptionArgs

      public List<String> getNonOptionArgs()
      The arguments that are not options, in order.