public class ShellCommandLineParser extends Object
ShellProperties and ApplicationArguments to create an instance of the
Spring Shell's CommandLine class.
The behavior of this class differs from the default Spring Shell
SimpleShellCommandLineOptions.parseCommandLine(String[]) method in that
additional passed in arguments are not interpreted to be commands to execute and then quit. Only by passing
in the options --spring.shell.commandFile can you execute commands in the shell and then quit.| Constructor and Description |
|---|
ShellCommandLineParser() |
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
parse(ShellProperties shellProperties,
String[] applicationArguments)
Parse
ShellProperties and ApplicationArguments to create an instance of the |
public CommandLine parse(ShellProperties shellProperties, String[] applicationArguments)
ShellProperties and ApplicationArguments to create an instance of theshellProperties - the shell propertiesapplicationArguments - the raw unprocessed arguments that were passed to the application.CommandLine instance.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.