Implementing commandline argument parsing.