summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-01-18 12:14:51 +0000
committerAlain Frisch <alain@frisch.fr>2012-01-18 12:14:51 +0000
commita49bdea123308058118278069f26882d2e82481a (patch)
tree65924e7d84d8a7b794fcd57e2dc56b3816570b9c
parent8acbeff60b39652e2c185e66b5a0d192117f62a4 (diff)
downloadocaml-a49bdea123308058118278069f26882d2e82481a.tar.gz
-warn-help show the meaning of letters.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--utils/warnings.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/warnings.ml b/utils/warnings.ml
index ed771580fb..a7babcc40f 100644
--- a/utils/warnings.ml
+++ b/utils/warnings.ml
@@ -370,5 +370,17 @@ let descriptions =
let help_warnings () =
List.iter (fun (i, s) -> Printf.printf "%3i %s\n" i s) descriptions;
+ print_endline " A All warnings.";
+ for i = Char.code 'b' to Char.code 'z' do
+ let c = Char.chr i in
+ match letter c with
+ | [] -> ()
+ | [n] ->
+ Printf.printf " %c Synonym for warning %i.\n" (Char.uppercase c) n
+ | l ->
+ Printf.printf " %c Set of warnings %s.\n"
+ (Char.uppercase c)
+ (String.concat ", " (List.map string_of_int l))
+ done;
exit 0
;;