Modify main code for packaging
authorLowe Thiderman <redacted>
Tue, 27 May 2014 22:16:44 +0000 (00:16 +0200)
committerLowe Thiderman <redacted>
Tue, 27 May 2014 22:16:44 +0000 (00:16 +0200)
commit9befa1649cd8d9ad5838d0d04c4242e0a1b53e3d
treebdf90fb497bb45ca39e944a167a6a9a981b1dd09
parent765a01908d40effd7e7e329480f80b6c7c1609ed
Modify main code for packaging

Add main() function that setuptools can use as an executable entry point.

Also pass the `parser` variable to `validate_options()`. Since the parser is
now created within the function scope of `main()` it cannot be seen by
`validate_options()` anymore.
xkcdpass/xkcd_password.py
git clone https://git.99rst.org/PROJECT