Refactored go script to have generated usage.