org.springframework.cloud.dataflow.shell

## Class ShellCommandLineParser

- java.lang.Object
- - org.springframework.cloud.dataflow.shell.ShellCommandLineParser

-     public class ShellCommandLineParser
      extends Object

  Parses the `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.

  Author:
    Mark Pollack, Furer Alexander

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ShellCommandLineParser()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CommandLine` | `parse(ShellProperties shellProperties, String[] applicationArguments)` Parse `ShellProperties` and `ApplicationArguments` to create an instance of the

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ShellCommandLineParser

          public ShellCommandLineParser()

  - ### Method Detail

    - #### parse

          public CommandLine parse(ShellProperties shellProperties,
                                   String[] applicationArguments)

      Parse `ShellProperties` and `ApplicationArguments` to create an instance of the
      Parameters:
        `shellProperties` - the shell properties
        `applicationArguments` - the raw unprocessed arguments that were passed to the application.
      Returns:
        a new `CommandLine` instance.

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.