Skip to content

Commit

Permalink
Correct console application
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisco committed Feb 6, 2021
1 parent 4b004f4 commit c59329c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ dist
# TernJS port file
.tern-port

test.json
test.json
vft.json
options/vft.yaml
8 changes: 5 additions & 3 deletions src/ToJSON/console.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import Parsing from "./models/Parsing";
import ParsingOptions from "./models/ParsingOptions";

export function Convert(argv:any) {
let parse = new Parsing();
let options = new ParsingOptions();

if (argv.path) {
parse.SetFilePath(argv.path as string);
options.SetFilePath(argv.path as string);
}

if (argv.opt) {
parse.SetConfigFile(argv.opt as string);
options.SetConfigFile(argv.opt as string);
}

let silent = false;
Expand All @@ -21,6 +22,7 @@ export function Convert(argv:any) {
onlyStats = true;
}

let parse = new Parsing(options);
let start = new Date().getTime();
parse.ParseFileAsync().then(result => {
if (argv.out) {
Expand Down

0 comments on commit c59329c

Please sign in to comment.