Create/start a sketch for a different API
This commit is contained in:
parent
014afb0c86
commit
b6005e11bb
|
|
@ -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() {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue