MedallionShell icon indicating copy to clipboard operation
MedallionShell copied to clipboard

Add public API for escaping command line arguments

Open madelson opened this issue 5 years ago • 0 comments

MedallionShell auto-escapes, but sometimes you need nested escaping (e. g. https://github.com/madelson/MedallionShell/issues/68#issuecomment-603876613).

API might look like:

class Command
{
   static string EscapeArguments(IEnumerable<string> args, OSPlatform? platform = null)
}

One downside to this is that people might get confused and think they need to call this all the time when 99% of the time they don't need it.

madelson avatar Mar 27 '20 10:03 madelson