Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhtrankhanh committed Dec 5, 2023
1 parent 5737159 commit bcde569
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions compiler/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as fs from 'fs'
import * as path from 'path'
import * as glob from 'glob'
import * as chokidar from 'chokidar'
import * as yargs from 'yargs'
import yargs from 'yargs/yargs'
import { hideBin } from "yargs/helpers"

// Import necessary modules for transform function
import { CoqCPASTTransformer, CoqCPAST, ParseError } from './parse'
Expand Down Expand Up @@ -87,7 +88,7 @@ function transform(
)
}

const argv = yargs
const argv = yargs(hideBin(process.argv))
.option('input', {
alias: 'i',
description: 'Input files glob pattern',
Expand All @@ -110,7 +111,7 @@ const argv = yargs
alias: 'w',
description: 'Watch mode',
type: 'boolean',
}).argv
}).parseSync()

// Function to process files based on the provided glob pattern
function processFiles(globPattern: string) {
Expand Down Expand Up @@ -142,4 +143,4 @@ if (argv.watch) {
console.log(`File ${filePath} has been ${event}`)
transformFile(filePath)
})
}
}

0 comments on commit bcde569

Please sign in to comment.