diff options
author | kitsunyan | 2019-12-20 04:52:44 +0000 |
---|---|---|
committer | kitsunyan | 2019-12-20 04:52:44 +0000 |
commit | cb433c355d168a0a0c0de2538b372f1fab18b868 (patch) | |
tree | 9fe29907e0b48ebb09bf0459ab0147fb84133d1d /src/args.nim | |
parent | 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 (diff) |
Fix some deprecations
Diffstat (limited to 'src/args.nim')
-rw-r--r-- | src/args.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.nim b/src/args.nim index 5018b12..fd03ee0 100644 --- a/src/args.nim +++ b/src/args.nim @@ -168,7 +168,7 @@ iterator items*(op: OptionPair): OptionKey = proc filter*(args: seq[Argument], removeMatches: bool, keepTargets: bool, pairs: varargs[OptionPair]): seq[Argument] = let pairsSeq = @pairs - let argsSet = lc[x | (y <- pairsSeq, x <- y), OptionKey].toSet + let argsSet = lc[x | (y <- pairsSeq, x <- y), OptionKey].toHashSet args.filter(arg => (arg.isShort and (removeMatches xor (arg.key, false) in argsSet)) or (arg.isLong and (removeMatches xor (arg.key, true) in argsSet)) or |