Parse arguments properly.