cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
46 stars 12 forks source link

"-o" parameter value and file extensions (case json) #602

Open JozefAerts opened 9 months ago

JozefAerts commented 9 months ago

I noticed that, when using the "-o" in combination with the -of JSON" parameters, that when I e.g. provide "-of JSON -o d:\temp\CORE_output.json", the software additionally adds ".json" to the output file name, even though it is provided yet. So, in my case, a file "CORE_output.json.json" is produced.

I think that it the software should check whether the usual file extension is already provided, and only when not, it should add it.

P.S. I didn't check for Excel yet ...