This snippet shows how to use https://github.com/halst/schema to validate command line arguments in a python script.

You should use https://github.com/docopt/docopt to handle command line arguments