14 lines
190 B
JavaScript
14 lines
190 B
JavaScript
|
import Option from './option.mjs'
|
||
|
|
||
|
class FlagOption extends Option {
|
||
|
set (val) {
|
||
|
super.set(true)
|
||
|
}
|
||
|
|
||
|
static create (def) {
|
||
|
return new this(def)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default FlagOption
|