From 921c83730f425dfb6b7db459044db839124dcff4 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Sat, 19 May 2018 06:07:08 +0300 Subject: Add support for "--ask" flag --- src/feature/syncinstall.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/feature') diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim index a686be4..ecab3f5 100644 --- a/src/feature/syncinstall.nim +++ b/src/feature/syncinstall.nim @@ -1259,7 +1259,8 @@ proc handleSyncInstall*(args: seq[Argument], config: Config): int = let noconfirm = args .filter(arg => arg.matchOption(%%%"confirm") or arg.matchOption(%%%"noconfirm")).optLast - .map(arg => arg.key == "noconfirm").get(false) + .map(arg => arg.key == "noconfirm").get(false) or + args.check(%%%"ask") let targets = args.packageTargets(false) -- cgit v1.2.3-70-g09d2