Implement arg parsing.