> compare.exe file.csv file_base.csv
2019-07-18Z15:00:35 [ Error ] Exception during run: The path is not of a legal form.
The problem is that it tries to deduce the report directory from the first .csv file. Here there is no leading directory so Path.GetDirectoryName(options.Items[0]) is empty string. Then Path.GetFullPath("") causes an exception. You should deal with this case and in case of empty string passed to GetFullPathWithEndingSlashes you should ask for current working directory Path.GetFullPath(".")
Next is the current logic from Program.cs that needs fixing:
The problem is that it tries to deduce the report directory from the first .csv file. Here there is no leading directory so
Path.GetDirectoryName(options.Items[0])
is empty string. ThenPath.GetFullPath("")
causes an exception. You should deal with this case and in case of empty string passed toGetFullPathWithEndingSlashes
you should ask for current working directoryPath.GetFullPath(".")
Next is the current logic from Program.cs that needs fixing: