diff options
Diffstat (limited to 'src/tools/refresh-question.ts')
| -rw-r--r-- | src/tools/refresh-question.ts | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/tools/refresh-question.ts b/src/tools/refresh-question.ts index ff849aed7f..83d71ff303 100644 --- a/src/tools/refresh-question.ts +++ b/src/tools/refresh-question.ts @@ -4,15 +4,11 @@ async function main(uri: string): Promise<any> { return await updateQuestion(uri); } -export default () => { - const args = process.argv.slice(3); - const uri = args[0]; +const args = process.argv.slice(2); +const uri = args[0]; - main(uri).then(result => { - console.log(`Done: ${result}`); - process.exit(0); - }).catch(e => { - console.warn(e); - process.exit(1); - }); -} +main(uri).then(result => { + console.log(`Done: ${result}`); +}).catch(e => { + console.warn(e); +}); |