Client: restore alias autocompletion

This commit is contained in:
Benjamin Canou 2018-02-13 23:49:04 +01:00
parent 42566e9dcd
commit 3729e4f3ce

View File

@ -182,9 +182,11 @@ module Alias = functor (Entity : Entity) -> struct
let alias_param
?(name = "name") ?(desc = "existing " ^ Entity.name ^ " alias") next =
param ~name ~desc
(parameter (fun (cctxt : #Client_commands.wallet) s ->
find cctxt s >>=? fun v ->
return (s, v)))
(parameter
~autocomplete
(fun (cctxt : #Client_commands.wallet) s ->
find cctxt s >>=? fun v ->
return (s, v)))
next
type fresh_param = Fresh of string