Launcher QoL
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -236,6 +236,6 @@ $RECYCLE.BIN/
|
||||
|
||||
### Advent of Code specific
|
||||
|
||||
**/input*.txt
|
||||
**/*input*.txt
|
||||
**/index.js
|
||||
.idea/
|
||||
|
||||
6
index.ts
6
index.ts
@@ -112,8 +112,8 @@ async function main(day: string | undefined, part : string | undefined, input: s
|
||||
runner(input)
|
||||
}
|
||||
|
||||
const day = process.argv[2]
|
||||
const part = process.argv[3]
|
||||
const input = process.argv[4]
|
||||
const day = process.argv[2] === undefined ? process.argv[2] : 'Day ' + process.argv[2]
|
||||
const part = process.argv[3] === undefined ? process.argv[3] : 'Part ' + process.argv[3]
|
||||
const input = process.argv[4] === undefined ? process.argv[4] : `./${day}/` + process.argv[4]
|
||||
|
||||
main(day, part, input).then()
|
||||
Reference in New Issue
Block a user