CommandParser: argv must be passed to constructor

The argv arguments array must be passed to the constructor. When
the variable passed is not an array, a TypeError is thrown. This
improves isolation and unit-testability.