V 2.03 Noch ein paar Anpassungen
This commit is contained in:
@@ -24,7 +24,7 @@ import { logit, logerror } from './logit.js'
|
||||
import { DateTime } from 'luxon'
|
||||
import fs from 'fs'
|
||||
import mod_getopt from 'posix-getopt'
|
||||
import pkg from './package.json' assert { type: "json" }
|
||||
const pkg = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
|
||||
|
||||
|
||||
// import nodeSchedule from 'node-schedule'
|
||||
@@ -76,7 +76,7 @@ const fetchNewData = async (args) => {
|
||||
function parse_cmdline(argv) {
|
||||
let parser = new mod_getopt.BasicParser('i(influx)m(mongo)t:(typ)h(help)v(version)',argv);
|
||||
let option;
|
||||
let ret = {influx: true, mongo: true, typ: TYP}
|
||||
let ret = {influx: false, mongo: true, typ: TYP}
|
||||
while((option = parser.getopt()) !== undefined) {
|
||||
switch(option.option) {
|
||||
case 'i':
|
||||
|
||||
Reference in New Issue
Block a user