Skip to content

Commit 421f39f

Browse files
author
pasit.r
committed
add default input file
1 parent a482ff2 commit 421f39f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reverse-words/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import reverseWords from './reverse-words.js'
2+
import path from 'path'
23

34
const args = process.argv.slice(2)
4-
const filename = args[0]
5+
const filename = args[0] || path.resolve('./src/reverse-words/B-large-practice.in')
56
reverseWords(filename)

0 commit comments

Comments
 (0)