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

Add new suppress flags to --help

Orvar Segerström 6 лет назад
Родитель
Сommit
250104c9da
2 измененных файлов с 9 добавлено и 1 удалено
  1. 5 1
      src/options/help.rs
  2. 4 0
      xtests/help

+ 5 - 1
src/options/help.rs

@@ -49,7 +49,11 @@ LONG VIEW OPTIONS
   -t, --time FIELD   which timestamp field to list (modified, accessed, created)
   -t, --time FIELD   which timestamp field to list (modified, accessed, created)
   -u, --accessed     use the accessed timestamp field
   -u, --accessed     use the accessed timestamp field
   -U, --created      use the created timestamp field
   -U, --created      use the created timestamp field
-  --time-style       how to format timestamps (default, iso, long-iso, full-iso)"##;
+  --time-style       how to format timestamps (default, iso, long-iso, full-iso)
+  --no-permissions   suppress the permissions field
+  --no-filesize      suppress the filesize field
+  --no-user          suppress the user field
+  --no-time          suppress the time field"##;
 
 
 static GIT_HELP:      &str = r##"  --git              list each file's Git status, if tracked or ignored"##;
 static GIT_HELP:      &str = r##"  --git              list each file's Git status, if tracked or ignored"##;
 static EXTENDED_HELP: &str = r##"  -@, --extended     list each file's extended attributes and sizes"##;
 static EXTENDED_HELP: &str = r##"  -@, --extended     list each file's extended attributes and sizes"##;

+ 4 - 0
xtests/help

@@ -42,5 +42,9 @@ LONG VIEW OPTIONS
   -u, --accessed     use the accessed timestamp field
   -u, --accessed     use the accessed timestamp field
   -U, --created      use the created timestamp field
   -U, --created      use the created timestamp field
   --time-style       how to format timestamps (default, iso, long-iso, full-iso)
   --time-style       how to format timestamps (default, iso, long-iso, full-iso)
+  --no-permissions   suppress the permissions field
+  --no-filesize      suppress the filesize field
+  --no-user          suppress the user field
+  --no-time          suppress the time field
   --git              list each file's Git status, if tracked or ignored
   --git              list each file's Git status, if tracked or ignored
   -@, --extended     list each file's extended attributes and sizes
   -@, --extended     list each file's extended attributes and sizes