@grandlinex/easy-cli
Version:
Cli lib to perform common tasks
23 lines (22 loc) • 470 B
JavaScript
import { CMap } from '@grandlinex/core';
export default class InteractionArgs {
constructor() {
this.cmd = [];
this.param = new CMap();
}
getCmdList() {
return this.cmd;
}
getLength() {
return this.param.size;
}
getParameters() {
return this.param;
}
getParameter(key) {
return this.param.get(key);
}
getParameterNull(key) {
return this.param.get(key) === null;
}
}