SIGN IN SIGN UP

#12776,#11839: call argparse type function only once.

Before, the type function was called twice in the case where the default
was specified and the argument was given as well.  This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.

Patch by Arnaud Fontaine, with additional test by Mike Meyer.
R
R David Murray committed
6fb8fb17bff87fdd5e738430502f34f8729766e3
Parent: 2a0fb14