mirror of
https://github.com/lsd-rs/lsd.git
synced 2026-02-16 12:14:36 +02:00
add portable command line wildcard support
This commit is contained in:
committed by
Pierre Peltier
parent
3a2a19fcb6
commit
32e0444b6f
@@ -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"
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user