mryingster/mandelbrot — pull request #2 by caldwell (2014-04-20 09:22:35+00:00)
Title: [mandelbrot.py] Use argparse to simplify command line parameter parsing.

The produces very similar output as before. The code size could be reduced further by removing the "alias" variable section:

(xL, yU, xU, yL) = options.coord
pixelWidth = options.width
startColor = options.color
colorRange = options.colors
outputName = options.output
maxDepth = options.depth

and just using the option.* name everywhere in the code (ie, use `options.width` instead of `pixelWidth`).

-David