Cli.GetArgs Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Returns a string array containing the command-line arguments for the current process.
Uses GetCommandLineArgs()but skips the first element which is the executable file name,
so the following zero or more elements that contain the remaining command-line arguments are returned,
i.e. returns the same as the special variable argsavailable in Program.cs(new style with top-level statements)
or as the string array passed to the program's Mainmethod (old style).
Also on Windows platform, backslash + double quote (\") at the end of an argument,
is usually a path separator and not an escape for double quote, so it will be trimmed to prevent unnecessary path errors.
public static string[] GetArgs()
Returns
- string[]
An array of strings where each element contains a command-line argument.