typescriptifying
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import * as fs from 'fs'
|
||||
import * as cmdargs from 'command-line-args'
|
||||
import * as logger from './log'
|
||||
|
||||
|
||||
|
||||
@ -15,5 +14,6 @@ export let dict : any
|
||||
export function readConfig() {
|
||||
let options = cmdargs(OPTION_DEFINITIONS)
|
||||
dict = JSON.parse(fs.readFileSync(options.config, "utf8"))
|
||||
logger.info(JSON.stringify(dict))
|
||||
}
|
||||
|
||||
readConfig()
|
||||
|
Reference in New Issue
Block a user