From 0f1f82373655c2c188404367c2817751e8910c60 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Fri, 27 Apr 2018 10:15:30 +0100 Subject: [PATCH] Add long options to cmd line params --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 52346cf..f5eacad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,12 +19,14 @@ fn main() { .arg( Arg::with_name("depth") .short("d") + .long("depth") .help("Depth to show") .takes_value(true), ) .arg( Arg::with_name("number_of_lines") .short("n") + .long("number-of-lines") .help("Number of lines of output to show") .takes_value(true) .default_value(DEFAULT_NUMBER_OF_LINES), @@ -32,11 +34,13 @@ fn main() { .arg( Arg::with_name("display_full_paths") .short("p") + .long("full-paths") .help("If set sub directories will not have their path shortened"), ) .arg( Arg::with_name("display_apparent_size") .short("s") + .long("apparent-size") .help("If set will use file length. Otherwise we use blocks"), ) .arg(Arg::with_name("inputs").multiple(true))