(string argument, out string flag, out string name, out string sep, out string value)
| 1031 | @"^(?<flag>--|-|/)(?<name>[^:=]+)((?<sep>[:=])(?<value>.*))?$"); |
| 1032 | |
| 1033 | protected bool GetOptionParts (string argument, out string flag, out string name, out string sep, out string value) |
| 1034 | { |
| 1035 | if (argument == null) |
| 1036 | throw new ArgumentNullException ("argument"); |
| 1037 | |
| 1038 | flag = name = sep = value = null; |
| 1039 | Match m = ValueOption.Match (argument); |
| 1040 | if (!m.Success) { |
| 1041 | return false; |
| 1042 | } |
| 1043 | flag = m.Groups ["flag"].Value; |
| 1044 | name = m.Groups ["name"].Value; |
| 1045 | if (m.Groups ["sep"].Success && m.Groups ["value"].Success) { |
| 1046 | sep = m.Groups ["sep"].Value; |
| 1047 | value = m.Groups ["value"].Value; |
| 1048 | } |
| 1049 | return true; |
| 1050 | } |
| 1051 | |
| 1052 | protected virtual bool Parse (string argument, OptionContext c) |
| 1053 | { |
nothing calls this directly
no outgoing calls
no test coverage detected