mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
add a vcs level to the option map
This commit is contained in:
parent
d3f933ff2d
commit
3abe620cf1
2 changed files with 18 additions and 58 deletions
|
@ -604,20 +604,6 @@ function CommandOptionParser(vcs, method, options) {
|
|||
this.explodeAndSet();
|
||||
}
|
||||
|
||||
var optionMap = {};
|
||||
commands.loop(function(config, name) {
|
||||
var displayName = config.displayName || name;
|
||||
if (optionMap[displayName] !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
var thisMap = {};
|
||||
_.each(config.options, function(option) {
|
||||
thisMap[option] = false;
|
||||
});
|
||||
optionMap[displayName] = thisMap;
|
||||
});
|
||||
|
||||
CommandOptionParser.prototype.explodeAndSet = function() {
|
||||
// TODO -- this is ugly
|
||||
// split on spaces, except when inside quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue