Use optimist to parse arguments.
SMASH GRAPH