fixed argparse port - type now takes a class, not a string