add a vcs level to the option map

This commit is contained in:
Siddharth Agarwal 2013-07-31 00:06:47 -07:00
parent d3f933ff2d
commit 3abe620cf1
2 changed files with 18 additions and 58 deletions

View file

@ -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