Set up FLAGS correctly based on command line args