File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -160,20 +160,26 @@ VB.Net example:
160160```VB .NET
161161< CommandLine .Verb (" add" , HelpText := " Add file contents to the index." )>
162162Public Class AddOptions
163- 'Normal options here
163+ 'Normal options here
164164End Class
165165< CommandLine .Verb (" commit" , HelpText := " Record changes to the repository." )>
166- Public Class AddOptions
167- 'Normal options here
166+ Public Class CommitOptions
167+ 'Normal options here
168168End Class
169169< CommandLine .Verb (" clone" , HelpText := " Clone a repository into a new directory." )>
170- Public Class AddOptions
171- 'Normal options here
170+ Public Class CloneOptions
171+ 'Normal options here
172172End Class
173173
174- Public Shared Sub Main ()
175- 'TODO
176- End Sub
174+ Function Main (ByVal args As String ()) As Integer
175+ Return CommandLine .Parser .Default .ParseArguments (Of AddOptions , CommitOptions , CloneOptions )(args ) _
176+ .MapResult (
177+ (Function (opts As AddOptions ) RunAddAndReturnExitCode (opts )),
178+ (Function (opts As CommitOptions ) RunCommitAndReturnExitCode (opts )),
179+ (Function (opts As CloneOptions ) RunCloneAndReturnExitCode (opts )),
180+ (Function (errs As IEnumerable (Of [Error ])) 1 )
181+ )
182+ End Function
177183```
178184
179185F # Example :
You can’t perform that action at this time.
0 commit comments