validOptions()

in commands/run.js [191:208]


  validOptions(full, short) {
    const all = new Map();

    for (const [key, value] of full) {
      if (this.options[key]) {
        all.set(key, value);
      }
    }

    for (const [key, value] of short) {
      const find = this.findOption(key);
      if (find) {
        all.set(key, value);
      }
    }

    return all;
  }