File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,14 @@ def cli(
171171 # Set default output filename if needed
172172 if output == "jsonfile" :
173173 timestamp = datetime .datetime .now ().strftime ("%Y-%m-%d_%H-%M-%S" )
174+
175+ # Extract base filenames without extensions for the comparison files
176+ prev_basename = os .path .splitext (os .path .basename (previous ))[0 ]
177+ curr_basename = os .path .splitext (os .path .basename (current ))[0 ]
178+ default_name = f"{ timestamp } _diffs_{ prev_basename } __VS__{ curr_basename } .json"
179+
174180 if not output_file :
175- output_file = f" { timestamp } _diffs.json"
181+ output_file = default_name
176182 else :
177183 # Append the user-specified filename to the timestamp
178184 base_name = os .path .splitext (output_file )[0 ] # Remove extension if present
You can’t perform that action at this time.
0 commit comments