diff --git a/Cargo.toml b/Cargo.toml index 842a871..1a3fae7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index 17f6d31..d826d84 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")