Clean up arg parsing.

- Use an enum for modes.
- Use a single width variable.
- Remove exitstatus global.