Create/start a sketch for a different API

This commit is contained in:
n loewen 2023-09-04 17:42:54 -07:00
parent 014afb0c86
commit b6005e11bb
1 changed files with 21 additions and 0 deletions

21
new-interface-sketch.js Normal file
View File

@ -0,0 +1,21 @@
/*
const opter = function (argv) {
return new Opter(argv);
}
*/
const cfgExample = {
synonyms: [['-d', '--debug']],
requiredOptions: ['-i', '-o'],
requiredArguments: { '-i': {min: 1, max: 1, tooFew: '', tooMany: ''}, }
}
class Opter {
constructor(argv, cfg) {
// this.opts = ...
}
contains() {
}
}