prompt: add y/n to msg

Fixes #999

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-08-13 06:29:05 +03:00
parent db017543d5
commit 2b19b6bbfa
+1 -1
View File
@@ -11,7 +11,7 @@ def prompt(msg, default=False):
if not sys.stdout.isatty():
return default
answer = input(msg + u'\n').lower()
answer = input(msg + u' (y/n)\n').lower()
while answer not in ['yes', 'no', 'y', 'n']:
answer = input('Enter \'yes\' or \'no\'.\n').lower()