We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
single_output
single_event
1 parent d3b233f commit 618ef76Copy full SHA for 618ef76
misp_stix_converter/__init__.py
@@ -207,7 +207,11 @@ def main():
207
import_parser.set_defaults(func=_stix_to_misp)
208
209
stix_args = parser.parse_args()
210
- if len(stix_args.file) > 1 and stix_args.single_output and stix_args.output_dir is None:
+ single = (
211
+ stix_args.single_output if stix_args.feature == 'export'
212
+ else stix_args.single_event
213
+ )
214
+ if len(stix_args.file) > 1 and single and stix_args.output_dir is None:
215
stix_args.output_dir = Path(__file__).parents[1] / 'tmp'
216
feature = 'MISP to STIX' if stix_args.feature == 'export' else 'STIX to MISP'
217
try:
0 commit comments