Skip to content

Commit

Permalink
feat(strictflag): Add tests for strict flag arg
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <dark0dave@mykolab.com>
  • Loading branch information
dark0dave committed Jan 3, 2025
1 parent 8a7f645 commit e8a8254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Let's break down what each part means:
* mod_installer(.exe): This is the name of the program you're running.
[OPTIONS]: These are additional settings you can use to customize how the program works (we'll explain these in detail below).

* --log-file <LOG_FILE>: This is where you tell the program where to find the "weidu.log" file.
* --log-file <LOG_FILE>: This is where you tell the program where to find the "weidu.log" file, which contains the mods you want to install, please note this is not the same as the weidu.log file in the game directory.

* --game-directory <GAME_DIRECTORY>: This is where you tell the program where your game is installed.

Expand Down
5 changes: 3 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,11 @@ mod tests {
abort_on_warnings: expected_flag_value,
timeout: 3600,
weidu_log_mode: "--autolog".to_string(),
strict_matching: false,
strict_matching: expected_flag_value,
};
let test_arg_string = format!(
"mod_installer -a {} -s {} -w {} -f {} -g {} -m {}",
"mod_installer -x {} -a {} -s {} -w {} -f {} -g {} -m {}",
flag_value,
flag_value,
flag_value,
fake_weidu_bin.to_str().unwrap_or_default(),
Expand Down

0 comments on commit e8a8254

Please sign in to comment.