Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48c6de9

Browse files
add usage attribute to VB Demo
1 parent 3f432bd commit 48c6de9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎demo/ReadText.Demo.VB/Options.vb‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Imports CommandLine
2+
Imports CommandLine.Text
23

34
Public Interface IOptions
45

@@ -27,6 +28,16 @@ Public Class HeadOptions
2728

2829
Public Property FileName As String Implements IOptions.FileName
2930

31+
<Usage(ApplicationAlias:="ReadText.Demo.VB.exe")>
32+
Public Shared ReadOnly Iterator Property IEnumerable() As IEnumerable(Of Example)
33+
Get
34+
Yield New Example("normal scenario", New HeadOptions With {.FileName = "file.bin"})
35+
Yield New Example("specify bytes", New HeadOptions With {.FileName = "file.bin", .Bytes = 100})
36+
Yield New Example("supress summary", UnParserSettings.WithGroupSwitchesOnly(), New HeadOptions With {.FileName = "file.bin", .Quiet = True})
37+
Yield New Example("read more lines", New UnParserSettings() {UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly()}, New HeadOptions With {.FileName = "file.bin", .Lines = 10})
38+
End Get
39+
End Property
40+
3041
End Class
3142

3243
<[Verb]("tail", HelpText:="Displays last lines of a file.")>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /