diff --git a/src/bin_node/node_config_command.ml b/src/bin_node/node_config_command.ml index fb09421ad..2dc87f128 100644 --- a/src/bin_node/node_config_command.ml +++ b/src/bin_node/node_config_command.ml @@ -123,9 +123,17 @@ module Manpage = struct entries in the Tezos configuration file." ] + let schema = Data_encoding.Json.schema (Node_config_file.encoding) + let options = [ + `S "OPTIONS" ; + `P "All options available in the config file"; + `Pre (Format.asprintf "@[%a@]" Json_schema.pp schema) + ] + let man = description @ Node_shared_arg.Manpage.args @ + options @ Node_shared_arg.Manpage.bugs let info = diff --git a/src/bin_node/node_config_file.mli b/src/bin_node/node_config_file.mli index b11479352..eca1a5334 100644 --- a/src/bin_node/node_config_file.mli +++ b/src/bin_node/node_config_file.mli @@ -84,4 +84,6 @@ val resolve_listening_addrs: string -> (P2p_addr.t * int) list Lwt.t val resolve_rpc_listening_addrs: string -> (P2p_addr.t * int) list Lwt.t val resolve_bootstrap_addrs: string list -> (P2p_addr.t * int) list Lwt.t +val encoding: t Data_encoding.t + val check: t -> unit Lwt.t