diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-08 10:28:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-08 10:28:07 +0000 |
commit | d5abe4cfddd5c6e14100f20d27d3de38fe7201f5 (patch) | |
tree | 26c4c71ada92de3ff7fe0a5864a42780ea276b20 /xtask | |
parent | 8317efa19159092430c971c9f29e611e448951c3 (diff) | |
parent | ceb8f74901f3160cc6ab0de6b8a1eb0f1984e060 (diff) |
Merge #2763
2763: :arrow_up: pico-args r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/main.rs | 4 |
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" => { |