public interface ApplicationArguments
SpringApplication
.Modifier and Type | Method and Description |
---|---|
boolean |
containsOption(String name)
Return whether the set of option arguments parsed from the arguments contains an
option with the given name.
|
List<String> |
getNonOptionArgs()
Return the collection of non-option arguments parsed.
|
Set<String> |
getOptionNames()
Return the names of all option arguments.
|
List<String> |
getOptionValues(String name)
Return the collection of values associated with the arguments option having the
given name.
|
String[] |
getSourceArgs()
Return the raw unprocessed arguments that were passed to the application.
|
String[] getSourceArgs()
Set<String> getOptionNames()
["foo", "debug"]
.boolean containsOption(String name)
name
- the name to checktrue
if the arguments contain an option with the given nameList<String> getOptionValues(String name)
[]
)["bar"]
)["bar", "baz"]
)null
name
- the name of the option