From 97b601276fa57381d37615d35a6c9873533462ad Mon Sep 17 00:00:00 2001 From: Johan Lindskogen Date: Wed, 28 Jun 2017 21:36:45 +0200 Subject: [PATCH] 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 --- src/wormhole/cli/cmd_receive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/cli/cmd_receive.py b/src/wormhole/cli/cmd_receive.py index fe44411..d9ba896 100644 --- a/src/wormhole/cli/cmd_receive.py +++ b/src/wormhole/cli/cmd_receive.py @@ -339,7 +339,7 @@ class Receiver: def _ask_permission(self): with self.args.timing.add("permission", waiting="user") as t: 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 os.path.exists(self.abs_destname): self._remove_existing(self.abs_destname)