aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
authorkitsunyan2018-05-04 13:12:04 +0000
committerkitsunyan2018-05-04 13:12:04 +0000
commit451cc4aca13cb6637b55c527d1e0647d6fffad5b (patch)
tree20dc46b11f90a5dda2cf34721d99e719d9c5da00 /src/main.nim
parent9f2cc1571a06685d28f1b8b0becf4406dda4177b (diff)
Fix extended options filter
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.nim b/src/main.nim
index bf32cdd..52f1cb8 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -17,9 +17,9 @@ proc passValidation(args: seq[Argument], config: Config,
if checkArgs.len == 0:
let needRoot = (nonRootArgs.len == 0 and args.check(rootArgs)) or
(nonRootArgs.len > 0 and (not args.check(nonRootArgs) or args.check(rootArgs)))
- return pacmanExec(needRoot, config.color, args.filterExtensions(true, true))
+ return pacmanExec(needRoot, config.color, args.filterExtensions(true, true, opts))
else:
- let extensions = args.filterExtensions(false, false)
+ let extensions = args.filterExtensions(false, false, opts)
if extensions.len == 0:
return pacmanExec(false, config.color, args)
else:
@@ -255,8 +255,7 @@ proc run(parsedArgs: seq[Argument], config: Config):
of OperationType.upgrade:
handleUpgrade(parsedArgs, config)
else:
- pacmanExec(false, config.color,
- parsedArgs.filterExtensions(true, true))
+ passValidation(parsedArgs, config, [], [], allOptions)
let runResult = if init.success.isSome:
run(init.success.unsafeGet.parsedArgs, init.success.unsafeGet.config)