渲染zh-Hant

全局

Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.

Marks an option or operand as global.

Syntax: 全局

Category#

cli

Examples#

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

Marks an option or operand as global.

# =============================================================================
# 全局 — Marks an option or operand as global.
# =============================================================================
#
# What this teaches:
#   • Global CLI flags — `全局` marks options available at any command level
#   • CLI metadata — combining `@ cli`, `@ 選項`, and `全局` for rich command definitions
#
# Common mistakes:
#   • confusing 全局 (global CLI flag marker) with 操作數 (positional argument) — 全局 applies only to option declarations
#
# See also: 選項, 操作數
# =============================================================================



# 全局 — global CLI option flag
#
# GRAMMAR:
#   annotationFlag :← '全局'
#
# EXPECTED OUTPUT:
#   No 入口 — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only CLI metadata (whitelist: 全局/ubique.fab).
#

@ 命令行 "ubique-smoke"
@ option verbose short "v" long "verbose" type bool global description "Global verbose flag"
main args args {
}