Replaced getopt() with args_parse().