From e57cf746054425bc877881998d806f8c429c5706 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Fri, 10 Jul 2026 00:46:34 +1000 Subject: [PATCH] punk::nav::fs 0.1.1: d/ v argument -choiceprefix 0 PUNKARGS fix d/ documented -choices on the v argument with -choiceprefix defaulting to true, but the manual parser uses an exact string comparison. PUNKARGS now declares -choiceprefix 0 so documented behaviour matches the implementation (exact match required). Assisted-by: harness=opencode; primary-model=openrouter/z-ai/glm-5.2; api-location=openrouter.ai --- src/modules/punk/nav/fs-999999.0a1.0.tm | 2 +- src/modules/punk/nav/fs-buildversion.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/punk/nav/fs-999999.0a1.0.tm b/src/modules/punk/nav/fs-999999.0a1.0.tm index 32746eab..6d8cadb4 100644 --- a/src/modules/punk/nav/fs-999999.0a1.0.tm +++ b/src/modules/punk/nav/fs-999999.0a1.0.tm @@ -367,7 +367,7 @@ tcl::namespace::eval punk::nav::fs { (on a case-insensitive filesystem the first pattern would also match names beginning with T) } @values -min 1 -max -1 -type string - v -type string -choices {/ //} -help\ + v -type string -choices {/ //} -choiceprefix 0 -help\ " / - list directories only // - list directories and files diff --git a/src/modules/punk/nav/fs-buildversion.txt b/src/modules/punk/nav/fs-buildversion.txt index f47d01c8..90f5323d 100644 --- a/src/modules/punk/nav/fs-buildversion.txt +++ b/src/modules/punk/nav/fs-buildversion.txt @@ -1,3 +1,4 @@ -0.1.0 +0.1.1 #First line must be a semantic version number #all other lines are ignored. +#0.1.1 - PUNKARGS fix: d/ v argument now declares -choiceprefix 0 so documented behaviour matches the manual parser (exact match required, no prefix matching)