This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Slightly modified version of the code posted in https://stackoverflow.com/a/64236441/7422811 | |
// License: Attribution-ShareAlike 2.5 Generic (CC BY-SA 2.5), https://creativecommons.org/licenses/by-sa/2.5/ | |
using System.Text; | |
/// <summary> | |
/// Helper functions to parse a command line string into a command line argument array in | |
/// the same way as .NET does. Tested with .NET 6 on Windows and Ubuntu Linux. | |
/// </summary> | |
internal static class CommandLine |