Skip to content

Commit

Permalink
Make default option of prompt uppercase
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lindskogen authored Jun 28, 2017
1 parent 3809784 commit 97b6012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wormhole/cli/cmd_receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _remove_existing(self, path):
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)
Expand Down

0 comments on commit 97b6012

Please sign in to comment.