chore: update ontology

This commit is contained in:
Jesús Pérez 2026-03-13 00:41:20 +00:00
parent d2b361420b
commit 97ef96f3d8
Signed by: jesus
GPG Key ID: 9F243E355E0BC939
3 changed files with 15 additions and 2 deletions

View File

@ -131,6 +131,7 @@ let d = import "../ontology/defaults/core.ncl" in
level = 'Practice,
description = "Migration system for onboarding existing projects into the ontoref protocol. Provides .ontology/ stub templates, .ontoref/config.ncl template, scripts/ontoref thin wrapper, and the adopt_ontoref mode+form+script that wire everything up idempotently.",
artifact_paths = [
"ontoref",
"templates/ontology/",
"templates/ontoref-config.ncl",
"templates/scripts-ontoref",

View File

@ -25,7 +25,7 @@ let d = import "../ontology/defaults/state.ncl" in
to = "protocol-stable",
condition = "ADR-001 accepted, ontoref.dev published, at least two external projects consuming the protocol.",
catalyst = "First external adoption.",
blocker = "ontoref.dev not yet published; no external consumers yet.",
blocker = "ontoref.dev not yet published; no external consumers yet. Entry point UX fixed (no-args usage message, bash set -u safety).",
horizon = 'Months,
},
],

14
ontoref
View File

@ -247,11 +247,23 @@ if [[ "${ENV_ONLY}" -eq 1 ]]; then
return 0 2>/dev/null || exit 0
fi
# ── No-args usage ─────────────────────────────────────────────────────────────
if [[ "${#REMAINING_ARGS[@]}" -eq 0 ]]; then
_caller="$(basename "$0")"
echo ""
echo " ${_caller}"
echo " Usage: ./${_caller} <command> [options]"
echo ""
echo " Use './${_caller} help' for available commands"
echo ""
exit 0
fi
# ── Rewrite help flags ────────────────────────────────────────────────────────
# Transform --help, -help, -h anywhere in args into: help <preceding-args>
_has_help=0
_non_help_args=()
for _a in "${REMAINING_ARGS[@]}"; do
for _a in "${REMAINING_ARGS[@]+"${REMAINING_ARGS[@]}"}"; do
case "${_a}" in
--help|-help|-h) _has_help=1 ;;
*) _non_help_args+=("${_a}") ;;