@@ -109,12 +109,6 @@ def load(filename, key, input_format, encoding="utf-8"):
109109 is_flag = True ,
110110 help = "If a record is changed, show ALL fields, not just the changed fields." ,
111111)
112- @click .option (
113- "--time" ,
114- "show_time" ,
115- is_flag = True ,
116- help = "Measure and display elapsed time for the diff operation." ,
117- )
118112@click .option (
119113 "--format" ,
120114 "input_format" ,
@@ -141,7 +135,7 @@ def load(filename, key, input_format, encoding="utf-8"):
141135@click .version_option ()
142136def cli (
143137 previous , current , key , input_format ,
144- show_unchanged , encoding , show_time , output , output_file , output_path ,
138+ show_unchanged , encoding , output , output_file , output_path ,
145139 fields , ignorefields , streaming , listfields
146140):
147141 """
@@ -210,8 +204,8 @@ def cli(
210204 fields_set = set (f .strip () for f in fields .split ("," )) if fields else None
211205 ignorefields_set = set (f .strip () for f in ignorefields .split ("," )) if ignorefields else None
212206
213- if show_time :
214- start = time_module .time ()
207+ # Always measure time (removed the --time option)
208+ start = time_module .time ()
215209
216210 # --- Streaming logic ---
217211 if (streaming or (detected_format in ("csv" , "tsv" ) and key )) and not fields :
@@ -252,6 +246,6 @@ def cli(
252246 )
253247 click .echo ("Finished. Output printed in readable format to terminal." )
254248
255- if show_time :
256- end = time_module .time ()
257- print (f"\n Elapsed time: { end - start :.3f} seconds" )
249+ # Always display the elapsed time
250+ end = time_module .time ()
251+ print (f"\n Elapsed time: { end - start :.3f} seconds" )
0 commit comments