Просмотр исходного кода

Merge pull request #432 from jcrd/docs

Documentation fixes
Benjamin Sago 7 лет назад
Родитель
Сommit
abf3222188
3 измененных файлов с 13 добавлено и 6 удалено
  1. 1 0
      README.md
  2. 10 5
      contrib/man/exa.1
  3. 2 1
      src/options/help.rs

+ 1 - 0
README.md

@@ -30,6 +30,7 @@ exa’s options are almost, but not quite, entirely unlike `ls`'s.
 - **-r**, **--reverse**: reverse the sort order
 - **-r**, **--reverse**: reverse the sort order
 - **-s**, **--sort=(field)**: which field to sort by
 - **-s**, **--sort=(field)**: which field to sort by
 - **--group-directories-first**: list directories before other files
 - **--group-directories-first**: list directories before other files
+- **-D**, **--only-dirs**: list only directories
 - **--git-ignore**: ignore files mentioned in `.gitignore`
 - **--git-ignore**: ignore files mentioned in `.gitignore`
 - **-I**, **--ignore-glob=(globs)**: glob patterns (pipe-separated) of files to ignore
 - **-I**, **--ignore-glob=(globs)**: glob patterns (pipe-separated) of files to ignore
 
 

+ 10 - 5
contrib/man/exa.1

@@ -74,6 +74,11 @@ list directories like regular files
 .RS
 .RS
 .RE
 .RE
 .TP
 .TP
+.B \-L, \-\-level=\f[I]DEPTH\f[]
+limit the depth of recursion
+.RS
+.RE
+.TP
 .B \-r, \-\-reverse
 .B \-r, \-\-reverse
 reverse the sort order
 reverse the sort order
 .RS
 .RS
@@ -102,6 +107,11 @@ ignore files mentioned in '.gitignore'
 list directories before other files
 list directories before other files
 .RS
 .RS
 .RE
 .RE
+.TP
+.B \-D, \-\-only\-dirs
+list only directories
+.RS
+.RE
 .SH LONG VIEW OPTIONS
 .SH LONG VIEW OPTIONS
 .PP
 .PP
 These options are available when running with \f[C]\-\-long\f[]
 These options are available when running with \f[C]\-\-long\f[]
@@ -137,11 +147,6 @@ list each file\[aq]s inode number
 .RS
 .RS
 .RE
 .RE
 .TP
 .TP
-.B \-L, \-\-level=\f[I]DEPTH\f[]
-limit the depth of recursion
-.RS
-.RE
-.TP
 .B \-m, \-\-modified
 .B \-m, \-\-modified
 use the modified timestamp field
 use the modified timestamp field
 .RS
 .RS

+ 2 - 1
src/options/help.rs

@@ -23,9 +23,11 @@ DISPLAY OPTIONS
 FILTERING AND SORTING OPTIONS
 FILTERING AND SORTING OPTIONS
   -a, --all                  show hidden and 'dot' files
   -a, --all                  show hidden and 'dot' files
   -d, --list-dirs            list directories like regular files
   -d, --list-dirs            list directories like regular files
+  -L, --level DEPTH          limit the depth of recursion
   -r, --reverse              reverse the sort order
   -r, --reverse              reverse the sort order
   -s, --sort SORT_FIELD      which field to sort by
   -s, --sort SORT_FIELD      which field to sort by
   --group-directories-first  list directories before other files
   --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
   -I, --ignore-glob GLOBS    glob patterns (pipe-separated) of files to ignore
   --git-ignore               Ignore files mentioned in '.gitignore'
   --git-ignore               Ignore files mentioned in '.gitignore'
   Valid sort fields:         name, Name, extension, Extension, size, type,
   Valid sort fields:         name, Name, extension, Extension, size, type,
@@ -41,7 +43,6 @@ LONG VIEW OPTIONS
   -h, --header       add a header row to each column
   -h, --header       add a header row to each column
   -H, --links        list each file's number of hard links
   -H, --links        list each file's number of hard links
   -i, --inode        list each file's inode number
   -i, --inode        list each file's inode number
-  -L, --level DEPTH  limit the depth of recursion
   -m, --modified     use the modified timestamp field
   -m, --modified     use the modified timestamp field
   -S, --blocks       show number of file system blocks
   -S, --blocks       show number of file system blocks
   -t, --time FIELD   which timestamp field to list (modified, accessed, created)
   -t, --time FIELD   which timestamp field to list (modified, accessed, created)