mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Format
This commit is contained in:
parent
0fceb8573c
commit
3490b4b6ef
@ -488,7 +488,7 @@ positional : _ -> Parser Str
|
||||
positional = \{ name, help ? "" } ->
|
||||
fn = \args ->
|
||||
nextUnmarked args
|
||||
|> Result.mapErr (\OutOfBounds -> (MissingPositionalArg name))
|
||||
|> Result.mapErr (\OutOfBounds -> MissingPositionalArg name)
|
||||
|> Result.map (\{ val, index } -> { val, newlyTaken: Set.insert args.taken index })
|
||||
|
||||
@Parser (Positional { name, help } fn)
|
||||
|
Loading…
Reference in New Issue
Block a user