Changes:
- Use exceptions to handle errors and pass them to the script, rather than calling
sys.exit
from the module. - Use
warnings.warn
to handle warnings and catch these in the script. - Implement colourised print messages along with the
--nocolour
flag to disable them. - Move
click.command
to the script rather than the module.