def main():
    '''cheesy gives you the news for today's cheese pipy factory from command line'''
    arguments = docopt(__doc__, version=__version__)
    if arguments['ls']:
        _pull_all('ls')
    elif arguments['list']:
        _pull_all('list')
    elif arguments['<PACKAGE>']:
		try:
			if arguments['<VERSION>']:
				_construct(arguments['<PACKAGE>'],arguments['<VERSION>'])
			else:
				_construct(arguments['<PACKAGE>'],None)
		except ValueError:
			print "\033[91m\033[1mError: package not found try.. \033[0m\033[1m\n$ cheese ls \nto view pacakages"
    else:
        print(__doc__)
cheesy gives you the news for today's cheese pipy factory from command line