Class PluginCommandLineParser
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Parses quoted and escaped command arguments.
public static class PluginCommandLineParser
- Inheritance
-
PluginCommandLineParser
- Inherited Members
Methods
Parse(string?)
Splits an argument string into its arguments.
public static IReadOnlyList<string> Parse(string? text)
Parameters
textstringThe text after the command word.
Returns
- IReadOnlyList<string>
The arguments in order; empty for null or blank text.
Remarks
Arguments are separated by white space. Single or double quotes keep white space inside one argument, and a backslash takes the next character literally.
Exceptions
- FormatException
A quote is opened and never closed.