Add the default value displayed "upper" in aliases Closes #1319
This commit is contained in:
parent
562a0f619e
commit
322616b9e3
1 changed files with 3 additions and 0 deletions
|
|
@ -441,6 +441,9 @@ class ConsoleApplication(BaseApplication):
|
||||||
if v.tiny:
|
if v.tiny:
|
||||||
question = u'%s (%s)' % (question, '/'.join((s.upper() if s == v.default else s)
|
question = u'%s (%s)' % (question, '/'.join((s.upper() if s == v.default else s)
|
||||||
for s in v.choices.iterkeys()))
|
for s in v.choices.iterkeys()))
|
||||||
|
for s in v.choices.iterkeys():
|
||||||
|
if s == v.default:
|
||||||
|
aliases[s.upper()] = s
|
||||||
for key, value in v.choices.iteritems():
|
for key, value in v.choices.iteritems():
|
||||||
print(' %s%s%s: %s' % (self.BOLD, key, self.NC, value))
|
print(' %s%s%s: %s' % (self.BOLD, key, self.NC, value))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue