Skip to content

Commit 5c73191

Browse files
committed
do not add question mark in prompt_* (closes smurfix#37)
1 parent 8fdc0c6 commit 5c73191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_script/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def prompt_bool(name, default=False, yes_choices=None, no_choices=None):
5454
no_choices = no_choices or ('n', 'no', '0', 'off', 'false', 'f')
5555

5656
while True:
57-
rv = prompt(name + '?', default and yes_choices[0] or no_choices[0])
57+
rv = prompt(name, default and yes_choices[0] or no_choices[0])
5858
if not rv:
5959
return default
6060
if rv.lower() in yes_choices:
@@ -87,7 +87,7 @@ def prompt_choices(name, choices, default=None, resolve=string.lower,
8787
_choices.append(choice)
8888

8989
while True:
90-
rv = prompt(name + '? - (%s)' % ', '.join(options), default)
90+
rv = prompt(name + ' - (%s)' % ', '.join(options), default)
9191
if not rv:
9292
return default
9393
rv = resolve(rv)

0 commit comments

Comments
 (0)