@@ -112,6 +112,10 @@ def get_shortcut_config():
112
112
if isinstance (on_throttle , bool ):
113
113
params .rest_context ._fail_on_throttle = on_throttle
114
114
115
+ unmask_all = params .config .get ('unmask_all' )
116
+ if isinstance (unmask_all , bool ):
117
+ params .unmask_all = unmask_all
118
+
115
119
except Exception as e :
116
120
logging .error ('Unable to parse JSON configuration file "%s"' , params .config_filename )
117
121
answer = input ('Do you want to delete it (y/N): ' )
@@ -147,6 +151,11 @@ def usage(m):
147
151
help = 'Indicates that the app was launched using a shortcut, for example using Mac App or from '
148
152
'Windows Start Menu.' )
149
153
parser .add_argument ('--proxy' , dest = 'proxy' , action = 'store' , help = 'Proxy server..' )
154
+ unmask_help = 'Disable default masking of sensitive information (e.g., passwords) in output'
155
+ parser .add_argument ('--unmask-all' , action = 'store_true' , help = unmask_help )
156
+ fail_on_throttle_help = 'Disable default client-side pausing of command execution and re-sending of requests upon ' \
157
+ 'server-side throttling'
158
+ parser .add_argument ('--fail-on-throttle' , action = 'store_true' , help = fail_on_throttle_help )
150
159
parser .add_argument ('command' , nargs = '?' , type = str , action = 'store' , help = 'Command' )
151
160
parser .add_argument ('options' , nargs = '*' , action = 'store' , help = 'Options' )
152
161
parser .error = usage
@@ -190,6 +199,12 @@ def main(from_package=False):
190
199
if opts .user :
191
200
params .user = opts .user
192
201
202
+ if opts .unmask_all :
203
+ params .unmask_all = opts .unmask_all
204
+
205
+ if opts .fail_on_throttle :
206
+ params .rest_context ._fail_on_throttle = opts .fail_on_throttle
207
+
193
208
if opts .password :
194
209
params .password = opts .password
195
210
else :
0 commit comments