cli: fix wrong argument being sent to doom-upgrade

In 84837fa0d, a new argument was added before the timeout arg which
broken this flag.
This commit is contained in:
Sean Farley 2019-09-22 14:23:50 -07:00
parent 30f15189e4
commit 85ea924595

View file

@ -16,6 +16,8 @@ following shell commands:
(member "--force" args)))
(doom-packages-update
doom-auto-accept
(when-let (threads (cadr (member "--threads" args)))
(string-to-number threads))
(when-let (timeout (cadr (or (member "--timeout" args)
(member "-t" args))))
(string-to-number timeout)))