support long named parameters

This commit is contained in:
Manuel Friedli 2014-12-07 23:45:33 +01:00
parent f952690dd1
commit 3b497435ae

View file

@ -146,18 +146,22 @@
var value = pair[1]; var value = pair[1];
switch (key) { switch (key) {
case 'l': case 'l':
case 'language':
this.options.language = value; this.options.language = value;
this.options.force = true; this.options.force = true;
break; break;
case 't': case 't':
case 'theme':
this.options.theme = value; this.options.theme = value;
this.options.force = true; this.options.force = true;
break; break;
case 'm': case 'm':
case 'mode':
this.options.mode = value; this.options.mode = value;
this.options.force = true; this.options.force = true;
break; break;
case 's': case 's':
case 'status':
this.options.status = value; this.options.status = value;
this.options.force = true; this.options.force = true;
break; break;