Skip to content

Commit 5313e7c

Browse files
authored
fix: fixed wildcard handling on windows (#602)
1 parent 382a23e commit 5313e7c

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = [".", "crate/encstr"]
44
[workspace.package]
55
repository = "https://github.com/pamburus/hl"
66
authors = ["Pavel Ivanov <[email protected]>"]
7-
version = "0.29.10"
7+
version = "0.29.11"
88
edition = "2021"
99
license = "MIT"
1010

@@ -76,6 +76,7 @@ strum = { version = "0", features = ["derive"] }
7676
thiserror = "1"
7777
titlecase = "3"
7878
toml = "0"
79+
wild = "2"
7980
wildflower = { git = "https://github.com/cassaundra/wildflower.git" }
8081
winapi-util = { version = "0" }
8182
wyhash = "0"

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl BootstrapOpt {
4343
}
4444

4545
pub fn args() -> Vec<String> {
46-
let mut args = std::env::args();
46+
let mut args = wild::args();
4747
let Some(first) = args.next() else {
4848
return vec![];
4949
};

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn run() -> Result<()> {
3434
let settings = config::load(cli::BootstrapOpt::parse().args.config.as_deref())?;
3535
config::global::initialize(settings.clone());
3636

37-
let opt = cli::Opt::parse();
37+
let opt = cli::Opt::parse_from(wild::args());
3838
if opt.help {
3939
return cli::Opt::command().print_help().map_err(Error::Io);
4040
}

0 commit comments

Comments
 (0)