I'm using Click to pass in an argument that is a file name. This file name is meant to be used by ConfigParser.SafeConfigParser.read()
to read an ini file. Unfortunately, Click passes in a file object which read()
cannot handle.
Is there a way to allow read()
to take a file object or can Click be configured to not open the file (but still do the checks)?