Class ApplicationArguments
java.lang.Object
com.codename1.backend.ApplicationArguments
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsOption(String name) Whether--namewas given, with or without a value.The arguments that are not options, in order.The names of the options, in the order they first appear.getOptionValues(String name) The values given to--name, empty for an option without one, or null when it was not given at all.String[]The arguments as given.
-
Constructor Details
-
ApplicationArguments
Parsesargs.- Parameters:
args- the arguments; null is taken as none
-
-
Method Details
-
getSourceArgs
The arguments as given. -
getOptionNames
-
containsOption
Whether--namewas given, with or without a value. -
getOptionValues
-
getNonOptionArgs
-