From 4daf12199a8ca0666b2f37e8d0c755b94cf1ea63 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 29 Jun 2025 17:42:37 -0700 Subject: Minor fixes to argv parsing and docker base image --- u/process/argv.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'u/process') diff --git a/u/process/argv.ts b/u/process/argv.ts index dca5098..396fa96 100644 --- a/u/process/argv.ts +++ b/u/process/argv.ts @@ -31,7 +31,9 @@ export const getArg = ( .flatMap((idx) => Optional.from(argv.at(idx)).map((_argv) => (_argv.includes('=') ? _argv.split('=')[1] : argv.at(idx + 1))), ) - .map((next) => (isArgKey(next) ? whenValue.unspecified : whenValue.present(next))) + .filter((next) => !isArgKey(next)) + .map((next) => whenValue.present(next)) + .orSome(() => whenValue.unspecified) .map((v) => Either.right(v)) .get(); }; -- cgit v1.2.3-70-g09d2