summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2011-08-11 15:46:43 -0400
committerShawn O. Pearce <sop@google.com>2011-11-29 12:38:52 -0800
commite9311273dda9aef91c563cd69b30f7a7491c56b5 (patch)
treebb9d6134f3babbc66f0fcace85989c53129b5de9 /subcmds/init.py
parent605a9a487bba6e25fb48d4e3076c89b7f686517a (diff)
downloadgit-repo-e9311273dda9aef91c563cd69b30f7a7491c56b5.tar.gz
repo: capitalize default prompt char
It is common in command line tools to indicate what the default answer will be if the user simply hits enter. In repo, the display is just "y/n" with no indication as to which is the default. So change the n to N in the messages since that is how repo operates. Change-Id: I81819ae630355072eb0365e59168b0921289498f
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 9214aed5..1c23d620 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -189,7 +189,7 @@ to update the working directory files.
189 189
190 print '' 190 print ''
191 print 'Your identity is: %s <%s>' % (name, email) 191 print 'Your identity is: %s <%s>' % (name, email)
192 sys.stdout.write('is this correct [y/n]? ') 192 sys.stdout.write('is this correct [y/N]? ')
193 a = sys.stdin.readline().strip() 193 a = sys.stdin.readline().strip()
194 if a in ('yes', 'y', 't', 'true'): 194 if a in ('yes', 'y', 't', 'true'):
195 break 195 break
@@ -231,7 +231,7 @@ to update the working directory files.
231 out.printer(fg='black', attr=c)(' %-6s ', c) 231 out.printer(fg='black', attr=c)(' %-6s ', c)
232 out.nl() 232 out.nl()
233 233
234 sys.stdout.write('Enable color display in this user account (y/n)? ') 234 sys.stdout.write('Enable color display in this user account (y/N)? ')
235 a = sys.stdin.readline().strip().lower() 235 a = sys.stdin.readline().strip().lower()
236 if a in ('y', 'yes', 't', 'true', 'on'): 236 if a in ('y', 'yes', 't', 'true', 'on'):
237 gc.SetString('color.ui', 'auto') 237 gc.SetString('color.ui', 'auto')