@@ -144,7 +144,7 @@ def Fire(component=None, command=None, name=None):
144144 output = ['Fire trace:\n {trace}\n ' .format (trace = component_trace )]
145145 result = component_trace .GetResult ()
146146 help_text = helptext .HelpText (
147- result , component_trace , component_trace .verbose )
147+ result , trace = component_trace , verbose = component_trace .verbose )
148148 output .append (help_text )
149149 Display (output , out = sys .stderr )
150150 raise FireExit (0 , component_trace )
@@ -155,7 +155,7 @@ def Fire(component=None, command=None, name=None):
155155 if component_trace .show_help :
156156 result = component_trace .GetResult ()
157157 help_text = helptext .HelpText (
158- result , component_trace , component_trace .verbose )
158+ result , trace = component_trace , verbose = component_trace .verbose )
159159 output = [help_text ]
160160 Display (output , out = sys .stderr )
161161 raise FireExit (0 , component_trace )
@@ -260,7 +260,8 @@ def _PrintResult(component_trace, verbose=False):
260260 if result is not None :
261261 print (result )
262262 else :
263- help_text = helptext .HelpText (result , component_trace , verbose )
263+ help_text = helptext .HelpText (
264+ result , trace = component_trace , verbose = verbose )
264265 output = [help_text ]
265266 Display (output , out = sys .stdout )
266267
@@ -279,16 +280,16 @@ def _DisplayError(component_trace):
279280 command = '{cmd} -- --help' .format (cmd = component_trace .GetCommand ())
280281 print ('INFO: Showing help with the command {cmd}.\n ' .format (
281282 cmd = pipes .quote (command )), file = sys .stderr )
282- help_text = helptext .HelpText (result , component_trace ,
283- component_trace .verbose )
283+ help_text = helptext .HelpText (result , trace = component_trace ,
284+ verbose = component_trace .verbose )
284285 output .append (help_text )
285286 Display (output , out = sys .stderr )
286287 else :
287288 print (formatting .Error ('ERROR: ' )
288289 + component_trace .elements [- 1 ].ErrorAsStr (),
289290 file = sys .stderr )
290- error_text = helptext .UsageText (result , component_trace ,
291- component_trace .verbose )
291+ error_text = helptext .UsageText (result , trace = component_trace ,
292+ verbose = component_trace .verbose )
292293 print (error_text , file = sys .stderr )
293294
294295
0 commit comments