Parse arguments in a more flexible way.