From 38f15ee660f4df99f83067aa84627206e12db5d0 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:32:54 +1100 Subject: [PATCH] `--self-install` should include a path to a binary On windows, we cannot just copy an executable with process running from it, so better to copy it to a temporary location. Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/bin/src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index f63f7e7e..6664577c 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -406,7 +406,7 @@ pub struct Args { pub(crate) quiet: bool, #[clap(long, hidden(true))] - pub(crate) self_install: bool, + pub(crate) self_install: Option, } #[derive(Debug, Clone)]