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