def main():
    args = docopt(__doc__, version=__version__)
    log_level = logging.INFO if args['--verbose'] else logging.ERROR
    logging.basicConfig(format='%(levelname)s: %(message)s', level=log_level)
    if args['list']:
        success = list_languages(global_=args['--global'])
        return sys.exit(0) if success else sys.exit(1)
    ret_code = write_gitignore(languages=args['<language>'],
                    append=args['--append'],
                    force=args['--force'],
                    global_=args['--global'])
    print("Done.")
    return sys.exit(ret_code)
Main entry point for the gig CLI.
dataset/ETHPy150Open sloria/gig/gig.py/main