YellLabs/yellfabric — pull request #28 by MattCottingham (2012-12-10 11:43:06+00:00)
Title: Parse the 'dist' option on deploy_play2 correctly

Previously this simply checked for the presence of a string, instead of validating the input. It now verifies that 'True' or 'False' is passed appropriately and aborts if not.

We have a couple of other places in the codebase where we need to parse task arguments from the command line - e.g. `deploy_django` parses the `debug` flag.

We may want to start using `argparse` for these in future - http://docs.python.org/dev/library/argparse.html