Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
refactor: simplify commandline switch parsing
hippietrailb0c4cc36d676
diff --git a/justfile b/justfileindex c19c28d4e..ec1dabfce 100644--- a/justfile+++ b/justfile@@ -327,10 +327,7 @@ newest-dict-changes *numCommits:const argv = [...process.argv];- const showHashes = argv.includes('--show-hashes');- if (showHashes) argv.splice(argv.indexOf('--show-hashes'), 1);- const showDiff = argv.includes('--show-diff');- if (showDiff) argv.splice(argv.indexOf('--show-diff'), 1);+ const [showHashes, showDiff] = ["--show-hashes", "--show-diff"].map(flag => argv.includes(flag) && argv.splice(argv.indexOf(flag), 1));// uncomment first line to use in justfile, comment out second line to use standaloneconst numCommits = "{{numCommits}}" || 1;