/[cvs]/joko/ToolBox/Windows/VpnDial/src/CommandLine.cls
ViewVC logotype

Diff of /joko/ToolBox/Windows/VpnDial/src/CommandLine.cls

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Wed Sep 28 20:36:46 2005 UTC revision 1.3 by joko, Fri Nov 18 18:57:46 2005 UTC
# Line 47  Public Sub parse() Line 47  Public Sub parse()
47              'Debug.Print "key: " & key              'Debug.Print "key: " & key
48              switches.add key              switches.add key
49              'switches.item(i + 1) = key              'switches.item(i + 1) = key
50                
51                On Error Resume Next
52              If (value <> "") Then              If (value <> "") Then
53                  options.add readValue(value), key                  options.add readValue(value), key
54                  i = i + 1                  i = i + 1
55              Else              Else
56                  options.add 1, key                  options.add 1, key
57              End If              End If
58                On Error GoTo 0
59                
60          End If          End If
61                    
62      Next i      Next i
# Line 101  End Function Line 105  End Function
105    
106  Private Function readSwitch(arg As String) As String  Private Function readSwitch(arg As String) As String
107      If (Left(arg, 2) = "--") Then      If (Left(arg, 2) = "--") Then
108          readSwitch = LCase(Mid(arg, 3))          readSwitch = Mid(arg, 3)
109      End If      End If
110  End Function  End Function
111    
112  Private Function readArgument(arg As String) As String  Private Function readArgument(arg As String) As String
113      If (Left(arg, 2) <> "--") Then      If (Left(arg, 2) <> "--") Then
114          readArgument = LCase(arg)          readArgument = arg
115      End If      End If
116  End Function  End Function
117    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed