BadScript 2
Loading...
Searching...
No Matches
ReadText.Demo.HeadOptions Class Reference
Inheritance diagram for ReadText.Demo.HeadOptions:
ReadText.Demo.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.Demo.IOptions

Detailed Description

Definition at line 31 of file Options.cs.

Property Documentation

◆ Bytes

uint? ReadText.Demo.HeadOptions.Bytes
getset

Implements ReadText.Demo.IOptions.

Definition at line 35 of file Options.cs.

35{ get; set; }

◆ Examples

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

Definition at line 42 of file Options.cs.

43 {
44 get
45 {
46 yield return new Example("normal scenario", new HeadOptions { FileName = "file.bin"});
47 yield return new Example("specify bytes", new HeadOptions { FileName = "file.bin", Bytes=100 });
48 yield return new Example("suppress summary", UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
49 yield return new Example("read more lines", new[] { UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly() }, new HeadOptions { FileName = "file.bin", Lines = 10 });
50 }
51 }
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...
static UnParserSettings WithUseEqualTokenOnly()
Factory method that creates an instance of CommandLine.UnParserSettings with UseEqualToken set to tru...

◆ FileName

string ReadText.Demo.HeadOptions.FileName
getset

Implements ReadText.Demo.IOptions.

Definition at line 39 of file Options.cs.

39{ get; set; }

◆ Lines

uint? ReadText.Demo.HeadOptions.Lines
getset

Implements ReadText.Demo.IOptions.

Definition at line 33 of file Options.cs.

33{ get; set; }

◆ Quiet

bool ReadText.Demo.HeadOptions.Quiet
getset

Implements ReadText.Demo.IOptions.

Definition at line 37 of file Options.cs.

37{ get; set; }

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