Mono.Options.ArgumentSource.GetArguments Method
Extract arguments from a System.IO.TextReader.

Syntax

public static IEnumerable<string> GetArguments (System.IO.TextReader reader)

Parameters

reader
A System.IO.TextReader to extract arguments from.

Returns

A IEnumerable<string> which will provide arguments extracted from reader.

Remarks

Arguments are extracted from reader by splitting on newlines and spaces but maintaining the contents of single-quoted and double-quoted strings. Thus, A B will be split as the separate strings "A", "B", while "A B" will be returned as-is.

Note: reader is not IO>TextReader.Closed.

Requirements

Namespace: Mono.Options
Assembly: Mono.Options (in Mono.Options.dll)
Assembly Versions: 0.2.2.0, 0.2.3.0