diff options
| author | Jack O'Connor <[email protected]> | 2020-05-23 12:34:02 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-05-23 12:46:45 -0400 |
| commit | 48512ec4f06cffaa3b3fba7af344f4924c1e6b10 (patch) | |
| tree | 5579e744508aab82cd9674847e866ccbca55c744 /b3sum/src | |
| parent | c9a1676942841973dc412f2b1e1f2d67b20949e2 (diff) | |
use wild::args_os to support globbing on Windows
Diffstat (limited to 'b3sum/src')
| -rw-r--r-- | b3sum/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/b3sum/src/main.rs b/b3sum/src/main.rs index 10f19ea..5d82f40 100644 --- a/b3sum/src/main.rs +++ b/b3sum/src/main.rs @@ -114,7 +114,9 @@ impl Args { Must be used with --check.", ), ) - .get_matches(); + // wild::args_os() is equivalent to std::env::args_os() on Unix, + // but on Windows it adds support for globbing. + .get_matches_from(wild::args_os()); let file_args = if let Some(iter) = inner.values_of_os(FILE_ARG) { iter.map(|s| s.into()).collect() } else { |
