From 03c0242805a02dc90f3ab92f1aba2ba2f68200b5 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Mon, 9 Apr 2018 22:19:38 +0300 Subject: Allow to use comma to separate "--ignore" and "--ignoregroup" args --- src/pacman.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pacman.nim b/src/pacman.nim index b8c62b5..1db5738 100644 --- a/src/pacman.nim +++ b/src/pacman.nim @@ -349,8 +349,10 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig = let debug = args.check((none(string), "debug")) let progressBar = not args.check((none(string), "noprogressbar")) - let ignorePkgs = getAll((none(string), "ignore")).toSet - let ignoreGroups = getAll((none(string), "ignoregroups")).toSet + let ignorePkgs = lc[x | (y <- getAll((none(string), "ignore")), + x <- y.split(',')), string].toSet + let ignoreGroups = lc[x | (y <- getAll((none(string), "ignoregroups")), + x <- y.split(',')), string].toSet let hasKeyserver = forkWaitRedirect(() => (block: dropPrivileges() -- cgit v1.2.3-70-g09d2