From 7218fb4b6a6622f2d1ac250944b9ed1bc2ec43d6 Mon Sep 17 00:00:00 2001 From: James Reed Date: Fri, 26 Oct 2018 17:21:31 -0600 Subject: [PATCH] Document only-dirs option --- contrib/man/exa.1 | 5 +++++ src/options/help.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/contrib/man/exa.1 b/contrib/man/exa.1 index 9c97eaf..6f5fa56 100644 --- a/contrib/man/exa.1 +++ b/contrib/man/exa.1 @@ -107,6 +107,11 @@ ignore files mentioned in '.gitignore' list directories before other files .RS .RE +.TP +.B \-D, \-\-only\-dirs +list only directories +.RS +.RE .SH LONG VIEW OPTIONS .PP These options are available when running with \f[C]\-\-long\f[] diff --git a/src/options/help.rs b/src/options/help.rs index 8ad4ed7..a00864a 100644 --- a/src/options/help.rs +++ b/src/options/help.rs @@ -27,6 +27,7 @@ FILTERING AND SORTING OPTIONS -r, --reverse reverse the sort order -s, --sort SORT_FIELD which field to sort by --group-directories-first list directories before other files + -D, --only-dirs list only directories -I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore --git-ignore Ignore files mentioned in '.gitignore' Valid sort fields: name, Name, extension, Extension, size, type,