Launcher QoL

This commit is contained in:
2024-12-09 06:59:45 +01:00
parent d4cc19c46a
commit d2dc8fcd69
2 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@@ -236,6 +236,6 @@ $RECYCLE.BIN/
### Advent of Code specific
**/input*.txt
**/*input*.txt
**/index.js
.idea/

View File

@@ -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()