File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ packages /*
2
+
3
+
1
4
Thumbs.db
2
5
* .obj
3
6
* .exe
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ let uciToOpt (uci : UnionCaseInfo) =
143
143
| CliPrefix.DoubleDash -> " --"
144
144
| CliPrefix.Dash -> " -"
145
145
| CliPrefix.Empty -> " "
146
- | p -> invalidArg " CliPrefix" " unsupported CLI prefix '%A '." p
146
+ | p -> invalidArg " CliPrefix" <| sprintf " unsupported CLI prefix '%s '." ( string p )
147
147
148
148
prefixString + uci.Name.ToLower() .Replace( '_' , '-' )
149
149
@@ -260,7 +260,7 @@ let preComputeArgInfo (uci : UnionCaseInfo) : ArgInfo =
260
260
| Some attr -> Some attr.Name
261
261
262
262
if AppSettingsName.IsNone && commandLineArgs.IsEmpty then
263
- failwith " Argu: parameter '%s ' needs to have at least one parse source." uci.Name
263
+ failwithf " Argu: parameter '%s ' needs to have at least one parse source." uci.Name
264
264
265
265
let printLabels = uci.ContainsAttr< PrintLabelsAttribute> ( true )
266
266
@@ -291,9 +291,9 @@ let preComputeArgInfo (uci : UnionCaseInfo) : ArgInfo =
291
291
let isEqualsAssignment =
292
292
if uci.ContainsAttr< EqualsAssignmentAttribute> ( true ) then
293
293
if types.Length <> 1 then
294
- failwith " Argu: Parameter '%s ' has EqualsAssignment attribute but has arity <> 1." uci.Name
294
+ failwithf " Argu: Parameter '%s ' has EqualsAssignment attribute but has arity <> 1." uci.Name
295
295
elif isRest then
296
- failwith " Argu: Parameter '%s ' contains incompatible attributes 'EqualsAssignment' and 'Rest'." uci.Name
296
+ failwithf " Argu: Parameter '%s ' contains incompatible attributes 'EqualsAssignment' and 'Rest'." uci.Name
297
297
true
298
298
else
299
299
false
Original file line number Diff line number Diff line change 38
38
39
39
// parses the first part of a command line parameter
40
40
// recognizes if parameter is of kind --param arg or --param=arg
41
- let private assignRegex = new Regex( " ^([^=]*)=(.*)$" , RegexOptions.Compiled)
41
+ let private assignRegex = new Regex( " ^([^=]*)=(.*)$" , RegexOptions.Compiled||| RegexOptions.IgnoreCase )
42
42
let private parseEqualityParam ( param : string ) =
43
43
let m = assignRegex.Match param
44
44
if m.Success then
You can’t perform that action at this time.
0 commit comments