Implement an argument parsing.