basic visuals working also

This commit is contained in:
Peter Cottle 2012-09-10 15:50:57 -07:00
parent 2f49d2d191
commit 908b403c4b
3 changed files with 9 additions and 6 deletions

View file

@ -122,7 +122,6 @@ function OptionParser(method, options) {
this.options = options;
this.supportedMap = this.getMasterOptionMap()[method];
this.unsupportedOptions = [];
if (this.supportedMap === undefined) {
throw new Error('No option map for ' + method);
@ -167,7 +166,8 @@ OptionParser.prototype.explodeAndSet = function() {
if (this.supportedMap[option] !== undefined) {
this.supportedMap[option] = true;
} else {
this.unsupportedOptions.push(option);
// this option is not supported
throw new CommandProcessError('The option "' + option + '" is not supported');
}
}, this);
// done!