Node: print config file options in manpage

This commit is contained in:
Pietro 2018-02-19 18:49:30 +01:00
parent 697b291782
commit e7bb484ead
2 changed files with 10 additions and 0 deletions

View File

@ -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 =

View File

@ -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