optiones
Translation status: 简体中文 reader-locale proof. Code fences render through the zh-Hans pipeline; prose is canonical Latin.
Binds CLI options metadata to a function declaration.
Syntax: functio <name>(...) optiones <ident> → <type>
Category#
entry
Related#
Examples#
radix/corpus/optiones/optiones.fab (canonical · keyword)#
Binds CLI options metadata to a function declaration.
# =============================================================================
# optiones — Binds CLI options metadata to a function declaration.
# =============================================================================
#
# What this teaches:
# • Options bundle — The `optiones <ident> → <type>` syntax attaches a CLI options struct to a function.
# • Declaration syntax — Options are declared as a modifier on the function signature, after the parameter list.
#
# Common mistakes:
# • Duplicate flag definitions in optiones — each short and long flag must be unique within the CLI surface.
#
# See also: argumenta, ad
# =============================================================================
# optiones — CLI options bundle on functio
#
# GRAMMAR:
# funcModifier :← ')' 'optiones' ident '→' type
#
# EXPECTED OUTPUT:
# No incipit — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only CLI binding (whitelist: optiones/optiones.fab).
#
fn mitte() options Opts → string {
return "ok"
}