From 20d54400238157e19a1e2beccdbee4909322b7ed Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Jul 2022 19:40:55 +0200 Subject: [PATCH] fix(cli): don't persist options/args in context They're overwritten anyway. And leftover state can cause confusion in sub-sessions. --- core/core-cli-lib.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-cli-lib.el b/core/core-cli-lib.el index d8b5409c3..899f53a37 100644 --- a/core/core-cli-lib.el +++ b/core/core-cli-lib.el @@ -611,8 +611,8 @@ Throws `doom-cli-invalid-option-error' for illegal values." command ; The full command that led to this context path ; Breadcrumb list of resolved commands so far whole ; Unfiltered and unprocessed list of arguments - options ; An alist of (flags . value) - arguments ; An alist of non-subcommand arguments, by command + (options nil :skip t) ; An alist of (flags . value) + (arguments nil :skip t) ; An alist of non-subcommand arguments, by command (stdin (generate-new-buffer " *doom-cli stdin*") :type buffer) ; buffer containing anything piped into this session (stdout (generate-new-buffer " *doom-cli stdout*") :type buffer) ; buffer containing user-visible output (stderr (generate-new-buffer " *doom-cli stderr*") :type buffer) ; buffer containing all output, including debug output