write_to_file doesn't use **kw, so this removes it. Currently it crashes with:
Traceback (most recent call last):
File "/Users/simon/.pyenv/versions/3.7.0/bin/nexus", line 8, in <module>
sys.exit(main())
File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/__main__.py", line 26, in main
return args.main(args) or 0
File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/commands/trees.py", line 64, in run
write_output(nexus, args)
File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/cli_util.py", line 79, in write_output
print('Output written to {0}'.format(writer.write_to_file(args.output, **vars(args))))
TypeError: write_to_file() got an unexpected keyword argument 'log'
write_to_file doesn't use **kw, so this removes it. Currently it crashes with: