Create the argparse.ArgParser instance only on demand.

Review Request #3056 — Created Oct. 29, 2015 and submitted — Latest diff uploaded

benjyw
pants
01970db...
pants-reviews
nhoward_tw
Its constructor is surprisingly heavyweight.

Also fixes an issue with detecting shadowing of an alternate
name of a multi-named option, and adds some approprate tests.

CI passes: https://travis-ci.org/pantsbuild/pants/builds/88227291

Loading...