feat: add CLI argument handling and build script

- Added command-line argument parsing to accept input file path instead of hardcoded value
- Added build task to compile standalone executable with deno compile
- Added usage message for incorrect invocation
This commit is contained in:
Esa Kataja
2025-11-16 15:40:18 +02:00
parent 73fab48815
commit 73fa8b0925
4 changed files with 79 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
{
"tasks": {
"dev": "deno run --watch --allow-run --allow-write --allow-read src/main.ts"
"dev": "deno run --watch --allow-run --allow-write --allow-read src/main.ts",
"build": "deno compile --allow-run --allow-write --allow-read --output dist/dvdsubconvert src/main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1"