Skip to content

Commit 2dbdfd1

Browse files
committed
Appliy simple mode for output_format
1 parent 9f57df2 commit 2dbdfd1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/fosslight_util/output_format.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def check_output_format(output='', format='', customized_format={}):
5757
return success, msg, output_path, output_file, output_extension
5858

5959

60-
def check_output_formats(output='', formats=[], customized_format={}):
60+
def check_output_formats(output='', formats=[], customized_format={}, simple_mode=False):
6161
success = True
6262
msg = ''
6363
output_path = ''
@@ -101,7 +101,10 @@ def check_output_formats(output='', formats=[], customized_format={}):
101101
else:
102102
output_path = output
103103
if not output_extensions:
104-
output_extensions = ['.xlsx']
104+
if simple_mode:
105+
output_extensions = ['.txt']
106+
else:
107+
output_extensions = ['.xlsx']
105108

106109
return success, msg, output_path, output_files, output_extensions
107110

0 commit comments

Comments
 (0)