Fixed CLI argument parsing.
Added unit tests for ArgumentParser.
More fixes to the argument parsing.