Make default option of prompt uppercase
Makes it clear what happens when user just presses `Enter` See: https://stackoverflow.com/questions/7803728/standard-format-for-yes-no-questions-in-the-terminal
This commit is contained in:
parent
38097847c4
commit
97b601276f
|
@ -339,7 +339,7 @@ class Receiver:
|
||||||
def _ask_permission(self):
|
def _ask_permission(self):
|
||||||
with self.args.timing.add("permission", waiting="user") as t:
|
with self.args.timing.add("permission", waiting="user") as t:
|
||||||
while True and not self.args.accept_file:
|
while True and not self.args.accept_file:
|
||||||
ok = six.moves.input("ok? (y/n): ")
|
ok = six.moves.input("ok? (y/N): ")
|
||||||
if ok.lower().startswith("y"):
|
if ok.lower().startswith("y"):
|
||||||
if os.path.exists(self.abs_destname):
|
if os.path.exists(self.abs_destname):
|
||||||
self._remove_existing(self.abs_destname)
|
self._remove_existing(self.abs_destname)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user