Преглед изворни кода

Remove one last newline from help output

Benjamin Sago пре 8 година
родитељ
комит
4e32b7fca9
3 измењених фајлова са 3 додато и 6 уклоњено
  1. 3 4
      src/options/help.rs
  2. 0 1
      xtests/help
  3. 0 1
      xtests/help_long

+ 3 - 4
src/options/help.rs

@@ -40,8 +40,7 @@ LONG VIEW OPTIONS
   -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)
   -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"##;
 
 
 static GIT_HELP:      &str = r##"  --git              list each file's Git status, if tracked"##;
 static GIT_HELP:      &str = r##"  --git              list each file's Git status, if tracked"##;
 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"##;
@@ -57,13 +56,13 @@ pub fn help_string(matches: &Matches, git: bool, xattr: bool) -> String {
     help.push_str(LONG_OPTIONS);
     help.push_str(LONG_OPTIONS);
 
 
     if git {
     if git {
-        help.push_str(GIT_HELP);
         help.push('\n');
         help.push('\n');
+        help.push_str(GIT_HELP);
     }
     }
 
 
     if xattr {
     if xattr {
-        help.push_str(EXTENDED_HELP);
         help.push('\n');
         help.push('\n');
+        help.push_str(EXTENDED_HELP);
     }
     }
 
 
     help
     help

+ 0 - 1
xtests/help

@@ -40,4 +40,3 @@ LONG VIEW OPTIONS
   -U, --created      use the created timestamp field
   -U, --created      use the created timestamp field
   --git              list each file's Git status, if tracked
   --git              list each file's Git status, if tracked
   -@, --extended     list each file's extended attributes and sizes
   -@, --extended     list each file's extended attributes and sizes
-

+ 0 - 1
xtests/help_long

@@ -16,4 +16,3 @@ LONG VIEW OPTIONS
   -U, --created      use the created timestamp field
   -U, --created      use the created timestamp field
   --git              list each file's Git status, if tracked
   --git              list each file's Git status, if tracked
   -@, --extended     list each file's extended attributes and sizes
   -@, --extended     list each file's extended attributes and sizes
-