summaryrefslogtreecommitdiff
path: root/src/remembering.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2026-06-12 10:59:00 -0300
committerEuAndreh <eu@euandre.org>2026-06-12 10:59:00 -0300
commitb9f2ad6b22fe6808a5cd2a1476172a1131adb3ed (patch)
tree56b7153976edf43fe92b17917209e9a4fadd2112 /src/remembering.go
parentRewrite remembering in Go (diff)
downloadremembering-b9f2ad6b22fe6808a5cd2a1476172a1131adb3ed.tar.gz
remembering-b9f2ad6b22fe6808a5cd2a1476172a1131adb3ed.tar.xz
Accept getopts-style attached -pPROFILE again
Via gobang.ExpandBundles("p:", argv), now that it understands optstring value flags: -pp1 expands to -p p1 before stdlib flag parsing, and nothing after "--" is expanded, so the wrapped command's own argv passes through byte-for-byte. signals.sh goes back to its original attached-form invocations, which now double as the compat test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'src/remembering.go')
-rw-r--r--src/remembering.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/remembering.go b/src/remembering.go
index 8d2a017..f802ffc 100644
--- a/src/remembering.go
+++ b/src/remembering.go
@@ -14,6 +14,8 @@ import (
"strconv"
"strings"
"syscall"
+
+ "gobang"
)
@@ -250,7 +252,8 @@ func run(env envT) int {
flags.SetOutput(env.err)
profileName := flags.String("p", "", "")
- if flags.Parse(env.allArgs[1:]) != nil {
+ argv := gobang.ExpandBundles("p:", env.allArgs[1:])
+ if flags.Parse(argv) != nil {
usage(env.err)
return 2
}