Parcourir la source

Improve initialisation messages

Leo il y a 10 ans
Parent
commit
9efc1bdd98
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 0
      CHANGELOG.md
  2. 2 1
      src/file_com.ml

+ 1 - 0
CHANGELOG.md

@@ -7,6 +7,7 @@
  + Improve “-l”: now display a “\*” next to current state.
  + Code clean up (Types in records) and code factoring.
  + When all has been launched, the program explain how to reset.
+ + Better messages on initialisation.
 
 ## v0.2.0
  + Add new command line option.

+ 2 - 1
src/file_com.ml

@@ -60,7 +60,8 @@ let rc_template () =
  * exist *)
 let create_rc_file ~name =
   (* Notify that we initialise config file *)
-  printf "Initializing configuration file in %s\n" name;
+  printf "Initializing empty configuration file in %s\n\
+  \nFeedback is welcomed at leowzukw@vmail.me\n\n" name;
   let compact_rc_file = Settings_j.string_of_rc_file (rc_template () ()) in
   let readable_rc_file = Yojson.Basic.prettify compact_rc_file in (* Create human readable string for rc file *)
   let out_file = Out_channel.create name in