Parcourir la source

Nicer 'invalid options' error messages

Benjamin Sago il y a 4 ans
Parent
commit
d678ccc08d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/main.rs

+ 2 - 2
src/main.rs

@@ -77,12 +77,12 @@ fn main() {
         }
 
         OptionsResult::InvalidOptionsFormat(oe) => {
-            eprintln!("Invalid options: {:?}", oe);
+            eprintln!("Invalid options: {}", oe);
             exit(exits::OPTIONS_ERROR);
         }
 
         OptionsResult::InvalidOptions(why) => {
-            eprintln!("{}", why);
+            eprintln!("Invalid options: {}", why);
             exit(exits::OPTIONS_ERROR);
         }
     }