[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 =
CLOpt.mk_bool_group ~long:(long ^ "-only")
~in_help:CLOpt.([(Analyze, manual_generic)])
(Printf.sprintf "Enable $(b,--%s) and disable all other checkers" long) [var]
(List.map ~f:fst !all_checkers)
(Printf.sprintf "Enable $(b,--%s) and disable all other checkers" long)
[(* 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

Loading…
Cancel
Save