add portable command line wildcard support

This commit is contained in:
Roy Ivy III
2019-05-07 12:59:15 -05:00
committed by Pierre Peltier
parent 3a2a19fcb6
commit 32e0444b6f
2 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ time = "0.1.40"
chrono-humanize = "0.0.11"
unicode-width = "0.1.5"
lscolors = "0.5.0"
wild = "2.0.1"
[target.'cfg(unix)'.dependencies]
users = "0.9.0"

View File

@@ -17,6 +17,7 @@ extern crate term_grid;
extern crate terminal_size;
extern crate time;
extern crate unicode_width;
extern crate wild;
#[cfg(unix)]
extern crate users;
@@ -38,7 +39,7 @@ use crate::flags::Flags;
use std::path::PathBuf;
fn main() {
let matches = app::build().get_matches();
let matches = app::build().get_matches_from(wild::args_os());
let inputs = matches
.values_of("FILE")