Implement commandline parsing