Python 2.7's argparse - open file for reading in utf-16
===

I'm using module argparse, and I want to have a command line argument of input_file, which is a path to a file in utf-16. I want to use argparse.FileType for something like that:

    parser.add_argument('input_file', type=argparse.FileType('r'))

Unfortunately, argparse.FileType `__init__` does not receive encoding parameter.

Is there another way to do so rather than just set the `input_file`'s type to str, and implement a subclass of `argparse.Action` that opens the file with `codecs`?

Thanks.