fix(toggle-external): --help prints the whole header, all 14 tools
usage() printed lines 3-26 with a hardcoded range, but the tool list runs to line 32, so 8 of the 14 tools were missing. It now reads `sed -n '3,/^# ====/p' | sed '$d'` and stops at the closing banner, with no line numbers. Logged in .claude/audits/BUGS-FOUND.md.
This commit is contained in:
1 parent
381ed9fa5d
commit
4c966ebdfc
1 file changed
+3
-1
@@ -347,7 +347,9 @@ list_all() {
|
||||
}
|
||||
|
||||
usage() {
|
||||
sed -n '3,26p' "$0" | sed 's/^# \?//'
|
||||
# Header comment = lines 3 .. closing banner (dropped); no numeric range,
|
||||
# so a longer tool list can no longer fall out of --help.
|
||||
sed -n '3,/^# ====/p' "$0" | sed '$d' | sed 's/^# \?//'
|
||||
exit "${1:-0}"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user