Table of Contents

Class CmdArgs

Namespace
SunamoCl.SunamoCmdArgs.Data
Assembly
SunamoCl.dll

Provides command-line argument parsing and storage using CommandLineParser library.

public class CmdArgs
Inheritance
CmdArgs
Inherited Members
Extension Methods

Properties

Options

Gets or sets the parsed options object.

public static object Options { get; set; }

Property Value

object

ProcessArgsErrors

Gets or sets the handler for argument parsing errors. Must accept IEnumerable of Error.

public static Action<IEnumerable<Error>> ProcessArgsErrors { get; set; }

Property Value

Action<IEnumerable<Error>>

Methods

SaveArgsWorker<T>(string[])

Parses command-line arguments into the specified options type and stores the result.

public static T SaveArgsWorker<T>(string[] args)

Parameters

args string[]

Command-line arguments to parse.

Returns

T

Parsed options object of type T.

Type Parameters

T

Options type to parse arguments into.