mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-19 18:25:18 +02:00
basic visuals working also
This commit is contained in:
parent
2f49d2d191
commit
908b403c4b
3 changed files with 9 additions and 6 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue