Select a compiler
LinkRun topaz compiler status - to inspect the installed compiler before choosing an implementation. Run topaz version to identify the product release.
An explicit - selects SELF. An explicit - selects the reference compiler for verification. When the selector is absent, compiler-bearing commands use SELF. A rejected operation does not silently switch to the reference compiler.
Default selection source · Selection validation source
Compiler selection and artifact selection answer different questions. - chooses an implementation. emit - requests Rust source. A native build target can use SELF. Read the command reference for the supported combinations.
Select the language mode
LinkFor an entry-file invocation, the current language mode is used when - is absent. The public 5.21.x CLI accepts the current 5.21 mode. A product patch version such as 5. identifies a release, not a separate language mode.
During package-mode compilation, [package]. in topaz. supplies the language mode before entry-source loading. An explicit language selector must agree with the manifest. A different manifest mode or a conflicting selector is rejected.
Keep the selected package root consistent across check, run, and build invocations. An entry operand normally selects an entry-file route. The test command also preserves package context when its selected root contains a manifest.
Command scope
LinkCompiler selection applies to parse, dump-, check, run, test, fmt, lsp, emit, build, doc, bench, and compiler observe.
Compiler-bearing command source
Package management, storage, embedded Lispex, lookup, metadata, and compiler inspection commands use their own command contracts. They reject an explicit - selector. This includes compiler preview, compiler status, compiler validate, and compiler compare.
compiler preview selects its producer through its preview options. Combining - with - or - is rejected. Producer selection does not change the default used by a later check or build invocation.
Confirm the selection
LinkAdd - to a compiler-bearing invocation to report the selected compiler on standard error. The report distinguishes an explicit choice from the current default with explicit and current-.
An LSP session may receive its package root during initialize. Its compiler selection is reported after the workspace supplies the language mode.
topaz compiler status - returns installed compiler identity, the default and reference selectors, and command support conditions. Read that inventory alongside the command's options and conflicts. Status output describes the installed tool. A successful status request is not a successful check or build.
Usage profiles
LinkA check usage profile adds checks for an intended use. The check contract defines its inputs, diagnostics, and reports. Installed profile availability remains a distribution evidence question.
Type checking without a mode flag
LinkType checking without a mode flag
Use topaz check <entry> for type checking. - is rejected during command validation.
Why
The check command performs type checking with or without the ineffective flag. Both spellings request the same operation, so the flag has no separate intent to preserve.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 122-124 - compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 646-651 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 438-442
Type checking without a mode flag rejection
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- types-option
Cause and conditions
Use topaz check <entry> for type checking. - is rejected during command validation.
Response
Run topaz check <entry> without -.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 122-124 - compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 646-651 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 438-442
Type checking without a mode flag examples
LinkReject the unused types option
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Type checking without a mode flag rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 122-124 - compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 646-651 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 438-442
Check with the canonical command
Linklet value = 1
No stdout.
Expected result
Expected result
Checking accepts the program. Exit code 0.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 122-124 - compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 646-651 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 438-442
Named metadata commands and long options
LinkNamed metadata commands and long options
Use topaz version for the installed release report. topaz - and topaz - are rejected during command validation.
Use - for additional command details. - is rejected during command validation.
Why
The version aliases request the same installed release report as the version command. The short verbosity alias requests the same additional detail as the verbose option. Neither alias expresses a different intent.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Named metadata commands and long options rejection
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- metadata-spellings
Cause and conditions
Use topaz version for the installed release report. topaz - and topaz - are rejected during command validation.
Use - for additional command details. - is rejected during command validation.
Use topaz version for the installed release report. topaz - and topaz - are rejected during command validation.
Use - for additional command details. - is rejected during command validation.
Response
Use topaz version and add - when a detailed report is needed.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Named metadata commands and long options examples
LinkReject the version flag alias
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Named metadata commands and long options rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Reject the short version alias
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Named metadata commands and long options rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Reject the short detail alias
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Named metadata commands and long options rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Read the installed release
Linklet value = 1
Topaz 5.21.3
Expected result
Expected result
Checking accepts the program. Exit code 0.
Topaz 5.21.3
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Request the detailed release report
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 658-659 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 315-318 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 583-587
Separate option values
LinkSeparate option values
An option and its value occupy separate arguments, as in -. The - form is rejected during command validation.
This rule applies to CLI options. Arguments after - are program data and preserve their spelling.
Why
The joined and separate forms supply the same value to the same option. A separate argument preserves that intent with one spelling and matches the command synopsis.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 710-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 779-798 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 1-260
Separate option values rejection
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- value-separator
Cause and conditions
An option and its value occupy separate arguments, as in -. The - form is rejected during command validation.
Response
Pass each option and its value as separate arguments, such as -.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 710-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 779-798 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 1-260
Separate option values examples
LinkReject an equals format value
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Separate option values rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 710-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 779-798 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 1-260
Reject an equals language value
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
Separate option values rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 710-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 779-798 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 1-260
Pass values as separate arguments
Linklet value = 1
No stdout.
Expected result
Expected result
Checking accepts the program. Exit code 0.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 710-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 779-798 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 1-260
One occurrence of each option
LinkOne occurrence of each option
An option appears at most once in an invocation. Repeated occurrences are rejected even when their values agree. The order of conflicting values does not select a winner.
Repeated options are rejected as unexpected arguments. This rule does not reinterpret program arguments after -.
Why
Each option selects one value or behavior. Rejecting repeated selectors prevents argument order from changing that choice and applies equally when the values agree.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
One occurrence of each option rejection
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- option-occurrence
Cause and conditions
An option appears at most once in an invocation. Repeated occurrences are rejected even when their values agree. The order of conflicting values does not select a winner.
Related rule: One occurrence of each optionResponse
Give each CLI option once and resolve conflicting choices before invoking Topaz.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
One occurrence of each option examples
LinkReject a repeated language selector
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One occurrence of each option rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
Reject conflicting formats in one order
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One occurrence of each option rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
Reject conflicting formats in the other order
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One occurrence of each option rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
Give each option once
Linklet value = 1
No stdout.
Expected result
Expected result
Checking accepts the program. Exit code 0.
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
Reject a repeated boolean option
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One occurrence of each option rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 713-748 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 758-798
One JSON format selector
LinkOne JSON format selector
Use - for JSON output from check, compiler status, explain, bench, lispex embed info. - is rejected during command validation. lispex embed info requires - and does not accept a human output format. Each command retains its own output fields and streams.
The format selector changes the representation of a command result. It does not merge the different records. check writes its diagnostic JSON to standard error. The other listed commands write one report to standard output. lispex embed info requires JSON. The other listed commands retain their human output format. Timing values vary between benchmark executions.
Why
The old JSON switch and the format selector request the same report representation. The shared selector preserves that intent while each command retains its own report. Export inspection and diagnostic reporting remain distinct operations.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
One JSON format selector rejection
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- json-format
Cause and conditions
Use - for JSON output from check, compiler status, explain, bench, lispex embed info. - is rejected during command validation. lispex embed info requires - and does not accept a human output format. Each command retains its own output fields and streams.
Response
Use - with a CLI that implements the Topaz 6.0 output selector.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
One JSON format selector examples
LinkReject --json for compiler status
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One JSON format selector rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Select JSON for compiler status
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
Standard output is a JSON object. Its complete schema is not specified.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Reject --json for diagnostic explanation
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One JSON format selector rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Select JSON for diagnostic explanation
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
Standard output is a JSON object. Its complete schema is not specified.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Reject --json for benchmark report
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Exit code 1.
One JSON format selector rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Benchmark JSON with --format json
Linkfunction identity<T>(value: T) -> T {value}
Expected result
Expected result
Checking accepts the program. Exit code 0.
Standard output is a JSON object. Its complete schema is not specified.
The benchmark checks the fixture without running it and writes a JSON report. Timing values vary between executions.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Reject --json for embedded component report
Linklet value = 1
No stdout.
Expected result
Expected result
Rejection during command. Nonzero exit.
One JSON format selector rejectiontools-unknown-option
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Select JSON for embedded component report
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
Standard output is a JSON object. Its complete schema is not specified.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
Keep the check diagnostic format
Linklet value = 1
No stdout.
Expected result
Expected result
Checking accepts the program. Exit code 0.
Source evidence
- compiler/crates/topaz_cli/src/command/flags.rs at
9b1bbdeceba9· 650-718 - compiler/crates/topaz_cli/src/command/validation.rs at
9b1bbdeceba9· 112-148 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 3-26 - compiler/crates/topaz_cli/src/compiler_support.rs at
9b1bbdeceba9· 392-453 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 69-102 - compiler/crates/topaz_diag/src/explain.rs at
9b1bbdeceba9· 518-525 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 30-50 - compiler/crates/topaz_cli/src/commands/bench.rs at
9b1bbdeceba9· 98-120 - compiler/crates/topaz_cli/src/lispex_embed.rs at
9b1bbdeceba9· 33-77 - compiler/crates/topaz_lispex_embed/src/report.rs at
9b1bbdeceba9· 6-66 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 439-441 - compiler/crates/topaz_cli/src/command/dispatch.rs at
9b1bbdeceba9· 676-690
A command is required
LinkName the help command
Use topaz help for command and option help. topaz is rejected during command validation.
An invocation must name a command. A missing command is a usage error with exit status 1 and empty standard output. The CLI reports the missing command on standard error and directs the user to topaz help. This textual failure has no TPZ code or source location.
Why
An explicit help command requests the command reference. An omitted command supplies no operation and can result from a missing script argument. Requiring an explicit request keeps that mistake observable.
Source evidence
- dispatch_command at
271329b482bc· 339-359
Missing command
- Family
- topaz-cli
- Phase
- command
- Operation
- argument-validation
- Category
- missing-command
Cause and conditions
Use topaz help for command and option help. topaz is rejected during command validation.
Response
Supply the command to run. Use topaz help to read the command and option help.
Source evidence
- dispatch_command at
271329b482bc· 339-359
Request help explicitly
LinkReject an invocation without a command
Linklet value = 1
No stdout.
Expected result
Source evidence
- dispatch_command at
271329b482bc· 339-359
Request help by name
Linklet value = 1
Expected result
Expected result
Checking accepts the program. Exit code 0.
topaz help prints the installed command and option help. Its wording and command inventory can grow. This example checks successful completion and an empty standard error stream.
Source evidence
- dispatch_command at
271329b482bc· 339-359