aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-07 12:51:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-07 12:51:32 +0200
commitcee01f171a505cc91dcfa2f1ecb9c9f6e2a9bd17 (patch)
tree0ad1a31fff72e60e0ee72ae27a00733e6a35abca /bpkg/utility.hxx
parent1e005c511529fc8d1b1d265f186e928af8aa313e (diff)
Move prompt facility from bpkg to libbutl
Diffstat (limited to 'bpkg/utility.hxx')
-rw-r--r--bpkg/utility.hxx10
1 files changed, 5 insertions, 5 deletions
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.
//