From cee01f171a505cc91dcfa2f1ecb9c9f6e2a9bd17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Jul 2018 12:51:32 +0200 Subject: Move prompt facility from bpkg to libbutl --- bpkg/utility.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bpkg/utility.hxx') diff --git a/bpkg/utility.hxx b/bpkg/utility.hxx index 19d664e..c0c361f 100644 --- a/bpkg/utility.hxx +++ b/bpkg/utility.hxx @@ -88,13 +88,13 @@ namespace bpkg // extern bool stderr_term; // True if stderr is a terminal. - // Y/N prompt. The def argument, if specified, should be either 'y' - // or 'n'. It is used as the default answer, in case the user just - // hits enter. Issue diagnostics and throw failed if no answer could - // be extracted from STDOUT (e.g., because it was closed). + // Y/N prompt. See butl::yn_prompt() for details (this is a thin wrapper). + // + // Issue diagnostics and throw failed if no answer could be extracted from + // stdin (e.g., because it was closed). // bool - yn_prompt (const char* prompt, char def = '\0'); + yn_prompt (const string& prompt, char def = '\0'); // Filesystem. // -- cgit v1.1