aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-08 10:28:07 +0000
committerGitHub <[email protected]>2020-01-08 10:28:07 +0000
commitd5abe4cfddd5c6e14100f20d27d3de38fe7201f5 (patch)
tree26c4c71ada92de3ff7fe0a5864a42780ea276b20 /xtask/src
parent8317efa19159092430c971c9f29e611e448951c3 (diff)
parentceb8f74901f3160cc6ab0de6b8a1eb0f1984e060 (diff)
Merge #2763
2763: :arrow_up: pico-args r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src')
-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" => {