Fixed issue with flags being passed as one argument.