diff options
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index a9adcfba4..dff3ce4a1 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -13,7 +13,7 @@ use std::env; | |||
13 | use pico_args::Arguments; | 13 | use pico_args::Arguments; |
14 | use xtask::{ | 14 | use xtask::{ |
15 | codegen::{self, Mode}, | 15 | codegen::{self, Mode}, |
16 | dist::{run_dist, ClientOpts}, | 16 | dist::run_dist, |
17 | install::{ClientOpt, InstallCmd, ServerOpt}, | 17 | install::{ClientOpt, InstallCmd, ServerOpt}, |
18 | not_bash::pushd, | 18 | not_bash::pushd, |
19 | pre_commit, project_root, run_clippy, run_fuzzer, run_pre_cache, run_release, run_rustfmt, | 19 | pre_commit, project_root, run_clippy, run_fuzzer, run_pre_cache, run_release, run_rustfmt, |
@@ -103,16 +103,10 @@ FLAGS: | |||
103 | run_release(dry_run) | 103 | run_release(dry_run) |
104 | } | 104 | } |
105 | "dist" => { | 105 | "dist" => { |
106 | let client_opts = if args.contains("--client") { | 106 | let nightly = args.contains("--nightly"); |
107 | Some(ClientOpts { | 107 | let client_version: Option<String> = args.opt_value_from_str("--client")?; |
108 | version: args.value_from_str("--version")?, | ||
109 | release_tag: args.value_from_str("--tag")?, | ||
110 | }) | ||
111 | } else { | ||
112 | None | ||
113 | }; | ||
114 | args.finish()?; | 108 | args.finish()?; |
115 | run_dist(client_opts) | 109 | run_dist(nightly, client_version) |
116 | } | 110 | } |
117 | _ => { | 111 | _ => { |
118 | eprintln!( | 112 | eprintln!( |