Skip to content

Commit 1f6586c

Browse files
committed
Use parseSync in test code
1 parent 983d9c7 commit 1f6586c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { hideBin } from 'yargs/helpers'
1010
import { Difficulty, Instrument } from './interfaces'
1111
import { appearsToBeChartFolder, getExtension } from './utils'
1212

13-
const argv = yargs(hideBin(process.argv))
13+
const config = yargs(hideBin(process.argv))
1414
.options({
1515
inputFolder: {
1616
alias: 'i',
@@ -46,7 +46,7 @@ const argv = yargs(hideBin(process.argv))
4646
},
4747
})
4848
.help()
49-
.parse()
49+
.parseSync()
5050

5151
interface InputHashes {
5252
[chartHash: string]: {
@@ -62,8 +62,6 @@ interface InputHashes {
6262
main()
6363
let scanCount = 0
6464
async function main() {
65-
const config = await argv
66-
6765
const inputHashes: InputHashes = {}
6866
for (const folder of await getChartFolders(config.inputFolder)) {
6967
const files = (

0 commit comments

Comments
 (0)