Skip to content

Commit a876efd

Browse files
committed
fix(single): Fix single flag pass
Signed-off-by: dark0dave <[email protected]>
1 parent 04bced9 commit a876efd

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mod_installer"
3-
version = "11.1.2"
3+
version = "11.2.0"
44
edition = "2021"
55
authors = [ "dark0dave" ]
66
documentation = "https://raw.githubusercontent.com/dark0dave/mod_installer/main/README.md"

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ pkgs ? import <nixpkgs> { } }:
22
pkgs.rustPlatform.buildRustPackage rec {
33
pname = "mod_installer";
4-
version = "11.1.2";
4+
version = "11.2.0";
55
cargoLock.lockFile = ./Cargo.lock;
66
src = pkgs.lib.cleanSource ./.;
77
buildInputs = with pkgs; [

src/config/args.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ pub(crate) struct Options {
162162
num_args=0..=1,
163163
action = clap::ArgAction::SetFalse,
164164
default_value_t = true,
165-
default_missing_value = "true",
166165
value_parser = BoolishValueParser::new(),
167166
)]
168167
pub(crate) skip_installed: bool,
@@ -175,7 +174,6 @@ pub(crate) struct Options {
175174
num_args=0..=1,
176175
action = clap::ArgAction::SetTrue,
177176
default_value_t = false,
178-
default_missing_value = "false",
179177
value_parser = BoolishValueParser::new(),
180178
)]
181179
pub(crate) abort_on_warnings: bool,
@@ -203,9 +201,7 @@ pub(crate) struct Options {
203201
num_args=0..=1,
204202
action = clap::ArgAction::SetTrue,
205203
default_value_t = false,
206-
default_missing_value = "false",
207204
value_parser = BoolishValueParser::new(),
208-
required = false,
209205
)]
210206
pub(crate) strict_matching: bool,
211207

@@ -216,7 +212,6 @@ pub(crate) struct Options {
216212
num_args=0..=1,
217213
action = clap::ArgAction::SetFalse,
218214
default_value_t = true,
219-
default_missing_value = "true",
220215
value_parser = BoolishValueParser::new(),
221216
)]
222217
pub(crate) download: bool,
@@ -229,7 +224,6 @@ pub(crate) struct Options {
229224
num_args=0..=1,
230225
action = clap::ArgAction::SetTrue,
231226
default_value_t = false,
232-
default_missing_value = "false",
233227
value_parser = BoolishValueParser::new(),
234228
)]
235229
pub(crate) overwrite: bool,
@@ -242,7 +236,6 @@ pub(crate) struct Options {
242236
num_args=0..=1,
243237
action = clap::ArgAction::SetTrue,
244238
default_value_t = false,
245-
default_missing_value = "false",
246239
value_parser = BoolishValueParser::new(),
247240
)]
248241
pub(crate) check_last_installed: bool,
@@ -379,7 +372,7 @@ mod tests {
379372
abort_on_warnings: expected_flag_value,
380373
timeout: 3600,
381374
weidu_log_mode: "--autolog".to_string(),
382-
strict_matching: false,
375+
strict_matching: true,
383376
download: true,
384377
overwrite: false,
385378
check_last_installed: false,

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ fn main() -> ExitCode {
1919

2020
let config = Config::new();
2121

22+
log::debug!("{:?}", config.args);
23+
2224
let status = match config.args.command {
2325
InstallType::Normal(command) => normal_install(
2426
&command.log_file,

0 commit comments

Comments
 (0)