Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shelld3v committed Oct 15, 2024
1 parent 9fa7d70 commit 29b3dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ def parse_options():
print(f"Invalid output format(s): {', '.join(invalid_formats)}")
exit(1)

# There are multiple file-based output formats but no variable to seperate output files for different formats
# There are multiple file-based output formats but no variable to separate output files for different formats
if (
opt.output_file
and "{format}" not in opt.output_file
and len(opt.output_formats) - ("mysql" in opt.output_formats) - ("postgresql" in opt.output_formats) > 1
and (
"{extension}" not in opt.output_file
# "plain" and "simple" have the same file extension (txt)
or {"plain", "simple"}.issubset(self.output_formats)
or {"plain", "simple"}.issubset(opt.output_formats)
)
):
print("Found at least 2 output formats sharing the same output file, make sure you use '{format}' and '{extension} variables in your output file")
Expand Down

0 comments on commit 29b3dbd

Please sign in to comment.