aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-08 10:27:31 +0000
committerAleksey Kladov <[email protected]>2020-01-08 10:27:31 +0000
commitceb8f74901f3160cc6ab0de6b8a1eb0f1984e060 (patch)
tree26c4c71ada92de3ff7fe0a5864a42780ea276b20 /xtask
parent8317efa19159092430c971c9f29e611e448951c3 (diff)
:arrow_up: pico-args
Diffstat (limited to 'xtask')
-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" => {