aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 053453e6e..c347de9ab 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -22,8 +22,8 @@ fn main() -> Result<()> {
22 return pre_commit::run_hook(); 22 return pre_commit::run_hook();
23 } 23 }
24 24
25 let subcommand = std::env::args().nth(1).unwrap_or_default(); 25 let mut args = Arguments::from_env();
26 let mut args = Arguments::from_vec(std::env::args_os().skip(2).collect()); 26 let subcommand = args.subcommand()?.unwrap_or_default();
27 27
28 match subcommand.as_str() { 28 match subcommand.as_str() {
29 "install" => { 29 "install" => {