mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-09-27 20:59:02 +00:00
Add some pointers
This commit is contained in:
parent
92dc91dbc7
commit
ab66c681c2
@ -59,7 +59,7 @@ impl Options {
|
||||
|
||||
match getopts::getopts(args.tail(), opts) {
|
||||
Err(f) => Err(f),
|
||||
Ok(matches) => Ok(Options {
|
||||
Ok(ref matches) => Ok(Options {
|
||||
show_invisibles: matches.opt_present("all"),
|
||||
reverse: matches.opt_present("reverse"),
|
||||
header: matches.opt_present("header"),
|
||||
@ -70,7 +70,7 @@ impl Options {
|
||||
}
|
||||
}
|
||||
|
||||
fn view(matches: getopts::Matches) -> View {
|
||||
fn view(matches: &getopts::Matches) -> View {
|
||||
if matches.opt_present("long") {
|
||||
View::Details(Options::columns(matches))
|
||||
}
|
||||
@ -85,7 +85,7 @@ impl Options {
|
||||
}
|
||||
}
|
||||
|
||||
fn columns(matches: getopts::Matches) -> Vec<Column> {
|
||||
fn columns(matches: &getopts::Matches) -> Vec<Column> {
|
||||
let mut columns = vec![];
|
||||
|
||||
if matches.opt_present("inode") {
|
||||
|
Loading…
Reference in New Issue
Block a user