Global Options
Global Options
Root Callback
Apply banner, help, version, dry-run, debug, and log-level behavior before any selected command.
Command
custy [GLOBAL_OPTIONS] COMMANDCategory
Reference
Quick Command
custy --dry-run run releaseOptions
Placement Rule
Correct and incorrect placement
bash# Correct: root option before the command
custy --dry-run changelog generate
custy --log-level DEBUG cleanup brancheses
# Incorrect: root option after a command that does not own it
custy --dry-run changelog generateSome experimental routes define local options with similar names. Do not use that exception to infer that every command accepts root options after its name.
Resolution and Shared Context
--dry-runresolves through CLI input, thentool.custy.cli.execution.dry_run, thenfalse.- Debug behavior resolves through the inverse
tool.custy.cli.execution.no_debugproperty. --log-levelresolves through CLI input, thentool.custy.logging.level, thenINFO.- The root callback stores dry-run, debug, and log level in
AppContextso direct commands and pipelines can reuse one request-scoped state object. --no-banner,--help, and--versionare root presentation controls and do not come from project configuration.