[config] make --<checker>-only actually work

Summary: shamecube

Reviewed By: sblackshear

Differential Revision: D5754580

fbshipit-source-id: 1f8c770
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 5a32fa966a
commit 62853bbd72

@ -660,8 +660,12 @@ and ( annotation_reachability
let _ : bool ref = let _ : bool ref =
CLOpt.mk_bool_group ~long:(long ^ "-only") CLOpt.mk_bool_group ~long:(long ^ "-only")
~in_help:CLOpt.([(Analyze, manual_generic)]) ~in_help:CLOpt.([(Analyze, manual_generic)])
(Printf.sprintf "Enable $(b,--%s) and disable all other checkers" long) [var] (Printf.sprintf "Enable $(b,--%s) and disable all other checkers" long)
(List.map ~f:fst !all_checkers) [(* enable this checker *) var]
((* disable all checkers except this one *)
List.filter_map
~f:(fun (var', long') -> if String.equal long long' then None else Some var')
!all_checkers)
in in
() ()
in in

Loading…
Cancel
Save