Skip to content

Commit 04f136d

Browse files
author
Clement Champetier
committed
sam do: display parameters which are not secret in bold
1 parent 1c8968a commit 04f136d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

applications/sam/sam_do.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def _displayParamHelp(self, param):
191191
"""
192192
Display help of the given OFXParameter.
193193
"""
194-
paramName = param.getScriptName()
194+
paramName = colored.green(param.getScriptName())
195+
if not param.getSecret() and clintVersion >= '0.3.3':
196+
paramName.bold = True
195197
paramType = param.getParamTypeName()
196198
paramHint = param.getHint()
197199
paramDefaultValue = None
@@ -256,7 +258,7 @@ def _displayParamHelp(self, param):
256258
# Print
257259
with indent(4):
258260
puts('{paramName!s:50}: {paramType!s:10}'.format(
259-
paramName=colored.green(paramName),
261+
paramName=paramName,
260262
paramType=paramType),
261263
newline=paramIsChoice)
262264

0 commit comments

Comments
 (0)