diff options
author | kitsunyan | 2018-04-29 13:44:59 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-29 13:44:59 +0000 |
commit | 9525d77603309b81faa43b14137b0a48f7391850 (patch) | |
tree | 3d8d2ec858681606c2ec5b5228529208dda91039 /src/feature/localquery.nim | |
parent | 34fb7795b12ad3aade4905438f44c9be95d9d501 (diff) |
Simplify arguments checking
Diffstat (limited to 'src/feature/localquery.nim')
-rw-r--r-- | src/feature/localquery.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/localquery.nim b/src/feature/localquery.nim index f4142ee..ccc1311 100644 --- a/src/feature/localquery.nim +++ b/src/feature/localquery.nim @@ -20,8 +20,8 @@ proc handleQueryOrphans*(args: seq[Argument], config: Config): int = if results.len > 0: let newArgs = args.filter(arg => not arg.isTarget and - not arg.matchOption((some("t"), "unrequired")) and - not arg.matchOption((some("d"), "deps"))) & + not arg.matchOption(%%%"unrequired") and + not arg.matchOption(%%%"deps")) & results.map(r => (r, none(string), ArgumentType.target)) pacmanExec(false, config.color, newArgs) elif targets.len == 0: |