aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim
index 467dc48..685b9d3 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -216,7 +216,8 @@ template withErrorHandler(propColor: Option[bool], T: typedesc, body: untyped):
let init = withErrorHandler(none(bool),
tuple[parsedArgs: seq[Argument], config: Config]):
- let parsedArgs = splitArgs(commandLineParams(), optionsWithParameter)
+ let parsedArgs = splitArgs(commandLineParams(), optionsWithParameter,
+ (operations.map(o => o.pair.long) & allOptions.map(o => o.pair.long)).deduplicate)
let pacmanConfig = obtainPacmanConfig(parsedArgs)
let config = obtainConfig(pacmanConfig)
(parsedArgs, config)