You can search for identifiers within the package.
in-package search v0.2.0
val optional_switch : string -> bool -> string list
optional_switch "flag" b is ["--flag"] if b is true, otherwise []
optional_switch "flag" b
["--flag"]
b
[]
val optional_arg : string -> ('a -> string) -> 'a option -> string list
optional_arg "arg" f opt_v is ["--arg"; f x] if opt_v is Some v, otherwise []
optional_arg "arg" f opt_v
["--arg"; f x]
opt_v
Some v