浏览代码

Nicer 'invalid options' error messages

Benjamin Sago 4 年之前
父节点
当前提交
d678ccc08d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
         }
     }