change approach again

This commit is contained in:
2018-05-09 14:31:22 +02:00
parent 54a933c83a
commit 0686e02b75
2252 changed files with 864743 additions and 270 deletions

18
node_modules/command-line-args/lib/value-arg.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
'use strict'
const t = require('typical')
const option = require('./option')
const reBeginsWithValueMarker = new RegExp('^' + option.VALUE_MARKER)
class ValueArg {
constructor (value) {
this.isOptionValueNotationValue = reBeginsWithValueMarker.test(value)
/* if the value marker is present at the value beginning, strip it */
this.value = value ? value.replace(reBeginsWithValueMarker, '') : value
}
isDefined () {
return t.isDefined(this.value)
}
}
module.exports = ValueArg