ソースを参照

Some minor fixes

Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>

Also add more spaces to make the descriptions of other options align that of `-n`.
b05902132 4 年 前
コミット
46a3e59e66
3 ファイル変更24 行追加24 行削除
  1. 1 1
      completions/completions.fish
  2. 22 22
      src/options/help.rs
  3. 1 1
      src/options/view.rs

+ 1 - 1
completions/completions.fish

@@ -65,7 +65,7 @@ complete -c exa -s 't' -l 'time'  -x -d "Which timestamp field to list" -a "
     created\t'Display created time'
 "
 complete -c exa -s 'm' -l 'modified'      -d "Use the modified timestamp field"
-complete -c -exa -s 'n' -l 'numeric-uid-gid' -d "List numeric user and group IDs."
+complete -c exa -s 'n' -l 'numeric-uid-gid' -d "List numeric user and group IDs."
 complete -c exa        -l 'changed'       -d "Use the changed timestamp field"
 complete -c exa -s 'u' -l 'accessed'      -d "Use the accessed timestamp field"
 complete -c exa -s 'U' -l 'created'       -d "Use the created timestamp field"

+ 22 - 22
src/options/help.rs

@@ -39,28 +39,28 @@ FILTERING AND SORTING OPTIONS
                              date, time, old, and new all refer to modified.
 
 LONG VIEW OPTIONS
-  -b, --binary         list file sizes with binary prefixes
-  -B, --bytes          list file sizes in bytes, without any prefixes
-  -g, --group          list each file's group
-  -h, --header         add a header row to each column
-  -H, --links          list each file's number of hard links
-  -i, --inode          list each file's inode number
-  -m, --modified       use the modified timestamp field
-  -n, --numeric-uid-gid list numeric user and group IDs
-  -S, --blocks         show number of file system blocks
-  -t, --time FIELD     which timestamp field to list (modified, accessed, created)
-  -u, --accessed       use the accessed timestamp field
-  -U, --created        use the created timestamp field
-  --changed            use the changed timestamp field
-  --time-style         how to format timestamps (default, iso, long-iso, full-iso)
-  --no-permissions     suppress the permissions field
-  --octal-permissions  list each file's permission in octal format
-  --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 EXTENDED_HELP: &str = r##"  -@, --extended       list each file's extended attributes and sizes"##;
+  -b, --binary           list file sizes with binary prefixes
+  -B, --bytes            list file sizes in bytes, without any prefixes
+  -g, --group            list each file's group
+  -h, --header           add a header row to each column
+  -H, --links            list each file's number of hard links
+  -i, --inode            list each file's inode number
+  -m, --modified         use the modified timestamp field
+  -n, --numeric-uid-gid  list numeric user and group IDs
+  -S, --blocks           show number of file system blocks
+  -t, --time FIELD       which timestamp field to list (modified, accessed, created)
+  -u, --accessed         use the accessed timestamp field
+  -U, --created          use the created timestamp field
+  --changed              use the changed timestamp field
+  --time-style           how to format timestamps (default, iso, long-iso, full-iso)
+  --no-permissions       suppress the permissions field
+  --octal-permissions    list each file's permission in octal format
+  --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 EXTENDED_HELP: &str = r##"  -@, --extended         list each file's extended attributes and sizes"##;
 
 
 /// All the information needed to display the help text, which depends

+ 1 - 1
src/options/view.rs

@@ -266,12 +266,12 @@ impl TimeFormat {
     }
 }
 
+
 impl UserFormat {
     fn deduce(matches: &MatchedFlags<'_>) -> Result<Self, OptionsError> {
         let flag = matches.has(&flags::NUM_UGID)?;
         Ok(if flag { Self::Numeric } else { Self::Name })
     }
-
 }