BadScript 2
Loading...
Searching...
No Matches
ReadText.LocalizedDemo.HeadOptions Class Reference
Inheritance diagram for ReadText.LocalizedDemo.HeadOptions:
ReadText.LocalizedDemo.IOptions

Properties

uint? Lines [get, set]
 
uint? Bytes [get, set]
 
bool Quiet [get, set]
 
string FileName [get, set]
 
static IEnumerable< ExampleExamples [get]
 
- Properties inherited from ReadText.LocalizedDemo.IOptions

Detailed Description

Definition at line 35 of file Options.cs.

Property Documentation

◆ Bytes

uint? ReadText.LocalizedDemo.HeadOptions.Bytes
getset

Implements ReadText.LocalizedDemo.IOptions.

Definition at line 39 of file Options.cs.

39{ get; set; }

◆ Examples

IEnumerable<Example> ReadText.LocalizedDemo.HeadOptions.Examples
staticget

Definition at line 46 of file Options.cs.

47 {
48 get
49 {
50 yield return new Example(Properties.Resources.ExamplesNormalScenario, new HeadOptions { FileName = "file.bin"});
51 yield return new Example(Properties.Resources.ExamplesSpecifyBytes, new HeadOptions { FileName = "file.bin", Bytes=100 });
52 yield return new Example(Properties.Resources.ExamplesSuppressSummary, UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
53 yield return new Example(Properties.Resources.ExamplesReadMoreLines, new[] { UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly() }, new HeadOptions { FileName = "file.bin", Lines = 10 });
54 }
55 }
Models a command line usage example.
Definition Example.cs:13
Provides settings for when formatting command line from an options instance../>.
static UnParserSettings WithGroupSwitchesOnly()
Factory method that creates an instance of CommandLine.UnParserSettings with GroupSwitches set to tru...

◆ FileName

string ReadText.LocalizedDemo.HeadOptions.FileName
getset

Implements ReadText.LocalizedDemo.IOptions.

Definition at line 43 of file Options.cs.

43{ get; set; }

◆ Lines

uint? ReadText.LocalizedDemo.HeadOptions.Lines
getset

Implements ReadText.LocalizedDemo.IOptions.

Definition at line 37 of file Options.cs.

37{ get; set; }

◆ Quiet

bool ReadText.LocalizedDemo.HeadOptions.Quiet
getset

Implements ReadText.LocalizedDemo.IOptions.

Definition at line 41 of file Options.cs.

41{ get; set; }

The documentation for this class was generated from the following file: