Loop through all the arguments passed in.


for (int i = 0; i < args.length; i++)
{
// where to parse what each flag does
}