Add basic command line flag parsing.

Yes, it's janky. Things will get a lot smoother soon.