(key, value)
| 109 | const template = arg('--template'); |
| 110 | const options = {}; |
| 111 | const set = (key, value) => { |
| 112 | if (value !== null && value !== undefined && value !== '') options[key] = value; |
| 113 | }; |
| 114 | |
| 115 | set('id', arg('--id')); |
| 116 | set('type', arg('--type', template ? null : 'loop')); |