From bae2f1f1eec21ce55b7858b4e743856104a83890 Mon Sep 17 00:00:00 2001 From: Erovia Date: Wed, 11 Mar 2020 13:39:13 +0100 Subject: [PATCH] Fix argument passing to doctor subcommand When 'qmk setup' is started with the '-y' argument, this argument should be specified for 'qmk doctor' as well. --- qmk_cli/subcommands/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmk_cli/subcommands/setup.py b/qmk_cli/subcommands/setup.py index d17b470..e1f8668 100644 --- a/qmk_cli/subcommands/setup.py +++ b/qmk_cli/subcommands/setup.py @@ -35,7 +35,7 @@ def setup(cli): # Run `qmk_firmware/bin/qmk doctor` to check the rest of the environment out if qmk_firmware.exists(): qmk_bin = qmk_firmware / 'bin' / 'qmk' - doctor = subprocess.run([sys.executable, str(qmk_bin), 'doctor']) + doctor = subprocess.run([sys.executable, str(qmk_bin), 'doctor', '-y' if cli.args.yes else '']) if doctor.returncode != 0: cli.log.error('Your build environment is not setup completely.')