private int parseCommandLine(final String... args) {
    if (args.length > 0 && !args[0].startsWith(GfshParser.SHORT_OPTION_SPECIFIER)) {
      return parseCommandLineCommand(args);
    }

    return parseOptions(args);
  }
Launcher class for :
<ul>
<li>gfsh 7.0
<li>server
<li>locator
<li>Tools (Pulse, VSD, JConsole, JVisualVM)
<li>Running Command Line Interface (CLI) Commands from OS prompt like
<ol>
<li>
<ul>
<li>compact offline-disk-store - Compact an offline disk store. If the disk store is large,
additional memory may need to be allocated to the process using the --J=-Xmx??? parameter.
<li>describe offline-disk-store - Display information about an offline disk store.
<li>encrypt password - Encrypt a password for use in data source configuration.
<li>run - Execute a set of GFSH commands. Commands that normally prompt for additional input will
instead use default values.
<li>start jconsole - Start the JDK's JConsole tool in a separate process. JConsole will be
launched, but connecting to GemFire must be done manually.
<li>start jvisualvm - Start the JDK's Java VisualVM (jvisualvm) tool in a separate process. Java
VisualVM will be launched, but connecting to GemFire must be done manually.
<li>start locator - Start a Locator.
<li>start pulse - Open a new window in the default Web browser with the URL for the Pulse
application.
<li>start server - Start a GemFire Cache Server.
<li>start vsd - Start VSD in a separate process.
<li>status locator - Display the status of a Locator. Possible statuses are: started, online,
offline or not responding.
<li>status server - Display the status of a GemFire Cache Server.
<li>stop locator - Stop a Locator.
<li>stop server - Stop a GemFire Cache Server.
<li>validate offline-disk-store - Scan the contents of a disk store to verify that it has no
errors.
<li>version - Display product version information.
</ul>
</li>
<li>multiple commands specified using an option "-e"
</ol>
</ul>

@since GemFire 7.0
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/Launcher.java