Expand description
v1.3.0 deprecation diagnostics for the CLI surface.
v1.3.0 introduces --pack as the canonical pack-root flag on the four
verbs that previously took --workspace (sync, serve,
migrate-lockfile, teardown). The old --workspace spelling is
preserved as a clap alias so existing scripts keep parsing, but
every invocation that uses the alias surfaces a one-time deprecation
warning so operators can migrate before removal.
Detection runs against std::env::args() rather than the parsed
clap::ArgMatches because clap collapses --pack and --workspace
into the same field; once parsing completes there is no signal left
that distinguishes which spelling the operator typed.
Removal target: v2.0.0 (per .omne/cfg/freeze-v1.3.0.md Table M1).
Functions§
- warn_
workspace_ alias_ used - Emit a
tracing::warn!line when the current process was invoked with the deprecated--workspacespelling on a verb that now prefers--pack. Each verb handler calls this at the top of itsrun/executeentry point so the diagnostic fires regardless of which dispatch path the operator took.