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

Add 'exa: ' before all command-line errors

Benjamin Sago 4 лет назад
Родитель
Сommit
701a2e60e5
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/main.rs
  2. 1 1
      xtests/help.toml

+ 1 - 1
src/main.rs

@@ -93,7 +93,7 @@ fn main() {
         }
         }
 
 
         OptionsResult::InvalidOptions(error) => {
         OptionsResult::InvalidOptions(error) => {
-            eprintln!("{}", error);
+            eprintln!("exa: {}", error);
 
 
             if let Some(s) = error.suggestion() {
             if let Some(s) = error.suggestion() {
                 eprintln!("{}", s);
                 eprintln!("{}", s);

+ 1 - 1
xtests/help.toml

@@ -4,4 +4,4 @@ shell = "exa --help"
 stdout = { file = "outputs/help.ansitxt" }
 stdout = { file = "outputs/help.ansitxt" }
 stderr = { empty = true }
 stderr = { empty = true }
 status = 0
 status = 0
-tags = [ 'help ']
+tags = [ 'help' ]