API reference
python:arx:arx.cli
module cli
arx.cli
Source: packages/arx/src/arx/cli.py:1
Functions and classes for handling the CLI call.
Classes
-
ArxApplication — Define the CLI-facing compiler application contract.
-
CustomHelpFormatter — Formatter for generating usage messages and argument help strings.
Functions
-
_arx_error_record — Convert one expected frontend error to the CLI diagnostic schema.
-
_compiler_error_records — Return machine records for a known compiler failure.
-
_irx_diagnostic_record — Convert one structured IRx diagnostic to the CLI schema.
-
_looks_like_subcommand_attempt — Return whether a leading token appears to be a subcommand attempt.
-
app — Run the application.
-
create_arx_application — Create the compiler application without loading it for metadata CLI.
-
get_args — Get the CLI arguments.
-
get_test_args — Get the CLI arguments for `arx test`.
-
report_compiler_error — Render one known compiler failure without hiding internal errors.
-
report_internal_error — Render a non-source internal compiler failure safely.
-
show_version — Show the application version.