العرضar

خيارات

Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.

Binds CLI options metadata to a function declaration.

Syntax: دالة <name>(...) خيارات <ident> → <type>

Category#

entry

Examples#

radix/corpus/optiones/optiones.fab (canonical · keyword)#

Binds CLI options metadata to a function declaration.

# =============================================================================
# خيارات — Binds CLI options metadata to a function declaration.
# =============================================================================
#
# What this teaches:
#   • Options bundle — The `خيارات <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 خيارات — each short and long flag must be unique within the CLI surface.
#
# See also: وسائط, اتصل
# =============================================================================

# خيارات — CLI options bundle on دالة
#
# GRAMMAR:
#   funcModifier :← ')' 'خيارات' ident '→' type
#
# EXPECTED OUTPUT:
#   No بداية — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only CLI binding (whitelist: خيارات/optiones.fab).
#

fn mitte() options Opts → string {
    return "ok"
}