toán_hạng
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Declares a CLI operand annotation.
Syntax: @ toán_hạng [còn_lại] <type> <binding> [mô_tả \"...\"] [ubique] [vel <default>]
Category#
cli
Related#
Examples#
radix/corpus/operandus/operandus.fab (canonical · keyword)#
Declares a CLI operand annotation.
# =============================================================================
# toán_hạng — Declares a CLI operand annotation.
# =============================================================================
#
# What this teaches:
# • CLI operands — `@toán_hạng` declares positional arguments for CLI subcommands.
# • Binding and description — Each operand specifies a type, binding name, and description.
# • Variadic operands — The `còn_lại` keyword marks an operand that consumes remaining arguments.
#
# Common mistakes:
# • Duplicate operand bindings or type mismatches — each operand name must be unique and match its declared type.
#
# See also: tùy_chọn, cli, lệnh, còn_lại, toàn_cục
# =============================================================================
# toán_hạng — CLI positional operand
#
# GRAMMAR:
# annotation :← '@' 'toán_hạng' operandSpec
#
# EXPECTED OUTPUT:
# No bắt_đầu — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only CLI metadata (whitelist: toán_hạng/operandus.fab).
#
@ cli "operandus-smoke"
@ operand string input description "Input path"
@ operand rest string files description "Extra files"
main args args {
}