อาร์กิวเมนต์
Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.
Binds command-line arguments for an entry point.
Syntax: เริ่ม อาร์กิวเมนต์ <name> <block> | ฟังก์ชัน <name>() อาร์กิวเมนต์ <name> <block>
Category#
entry
Related#
- เริ่ม
- cli
- imperium
- ตัวเลือก
- ตัวถูกดำเนินการ
Examples#
radix/corpus/argumenta/argumenta.fab (canonical · keyword)#
Binds command-line arguments for an entry point.
# =============================================================================
# อาร์กิวเมนต์ — Binds command-line arguments for an entry point.
# =============================================================================
#
# What this teaches:
# • CLI entry binding — `เริ่ม อาร์กิวเมนต์ <name>` declares a program entry
# that receives command-line arguments
# • Annotation-driven CLI — `@ cli`, `@ คำอธิบาย`, and `เริ่ม อาร์กิวเมนต์`
# work together to define a structured CLI interface
#
# Common mistakes:
# • attaching `@ cli` to a `ฟังก์ชัน` instead of an `เริ่ม` (SEM009), or forgetting to annotate with `@ cli` before `เริ่ม อาร์กิวเมนต์`
#
# See also: เริ่ม, cli, คำสั่ง, ตัวเลือก, ตัวถูกดำเนินการ
# =============================================================================
# อาร์กิวเมนต์ — CLI entry operand binding
#
# GRAMMAR:
# entryDecl :← 'เริ่ม' 'อาร์กิวเมนต์' ident block
#
# EXPECTED OUTPUT:
# No เริ่ม — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only CLI entry (whitelist: อาร์กิวเมนต์/argumenta.fab).
#
@ cli "argumenta-smoke"
@ description "argumenta exemplum"
main args args {
}