From 33167a2282ac2b0d96d52d925ab9d5e84b0b5364 Mon Sep 17 00:00:00 2001 From: Marco 'don' Kaulea Date: Fri, 13 Jul 2018 17:38:36 +0200 Subject: [PATCH] Add short option for only-dirs --- src/options/flags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options/flags.rs b/src/options/flags.rs index f1d4b5b..306a946 100644 --- a/src/options/flags.rs +++ b/src/options/flags.rs @@ -30,7 +30,7 @@ pub static SORT: Arg = Arg { short: Some(b's'), long: "sort", take pub static IGNORE_GLOB: Arg = Arg { short: Some(b'I'), long: "ignore-glob", takes_value: TakesValue::Necessary(None) }; pub static GIT_IGNORE: Arg = Arg { short: None, long: "git-ignore", takes_value: TakesValue::Forbidden }; pub static DIRS_FIRST: Arg = Arg { short: None, long: "group-directories-first", takes_value: TakesValue::Forbidden }; -pub static ONLY_DIRS: Arg = Arg { short: None, long: "only-dirs", takes_value: TakesValue::Forbidden }; +pub static ONLY_DIRS: Arg = Arg { short: Some(b'D'), long: "only-dirs", takes_value: TakesValue::Forbidden }; const SORTS: Values = &[ "name", "Name", "size", "extension", "Extension", "modified", "accessed", "created", "inode", "type", "none" ];