ProcessArgumentEscaper.

Escape(string, bool) Method

Summary

Escapes a literal argument value for inclusion on a process command line.
Namespace
Cake.Core.IO
Containing Type
ProcessArgumentEscaper

Syntax

public static string Escape(string value, bool alwaysQuote = false)

Parameters

Name Type Description
value string The literal argument value. This should not already be quoted.
alwaysQuote bool If set to true, the result is always wrapped in quotes (except that and empty still become "").

Return Value

Type Description
string The escaped argument text.