SMI / IsIdentifiable

A tool for detecting identifiable information in data sources (CSV, DICOM, Relational Database and MongoDB)
GNU General Public License v3.0
14 stars 3 forks source link

CLI `-f` option defined as IFileInfo cannot be constructed #499

Closed rkm closed 3 months ago

rkm commented 4 months ago

https://github.com/SMI/IsIdentifiable/blob/ea673ff8b4e9916b45c86762ed998cfaf97d7c41/IsIdentifiable/Options/IsIdentifiableFileOptions.cs#L17

> ./ii file -f foo.dcm                                                                                                                                                                                           ii 
ERROR(S):                                                                                                                                                                                                          Option 'f' is defined with a bad format.
  Required option 'f' is missing.
jas88 commented 4 months ago

It's not possible to construct an IFileInfo directly ... the CommandLine demo code uses FileInfo (no I prefix) as the type, is that the root of the issue?

rkm commented 4 months ago

That could be it, yeah. Won't have a chance to test this until Monday now