| 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 |
| 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 |
|
|