parse arguments through a dictionary in a for loop instead of if-else statements