diff --git a/.ontology/core.ncl b/.ontology/core.ncl index d71ed71..7169d09 100644 --- a/.ontology/core.ncl +++ b/.ontology/core.ncl @@ -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", diff --git a/.ontology/state.ncl b/.ontology/state.ncl index 73f5bd8..de4c20f 100644 --- a/.ontology/state.ncl +++ b/.ontology/state.ncl @@ -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, }, ], diff --git a/ontoref b/ontoref index 32ef54a..ca3b753 100755 --- a/ontoref +++ b/ontoref @@ -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} [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 _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}") ;;