@@ -9,7 +9,6 @@ usage: generate_cli.py [-h] [--verbose] [--base-folder BASE_FOLDER]
99 [--render-range RENDER_RANGE |
1010 --render-from RENDER_FROM] [--force-render]
1111 [--unittests-script UNITTESTS_SCRIPT]
12- [--conformance-tests-folder CONFORMANCE_TESTS_FOLDER]
1312 [--conformance-tests-script CONFORMANCE_TESTS_SCRIPT]
1413 [--prepare-environment-script PREPARE_ENVIRONMENT_SCRIPT]
1514 [--test-script-timeout TEST_SCRIPT_TIMEOUT]
@@ -20,8 +19,8 @@ usage: generate_cli.py [-h] [--verbose] [--base-folder BASE_FOLDER]
2019 [--conformance-tests-dest CONFORMANCE_TESTS_DEST]
2120 [--render-machine-graph]
2221 [--logging-config-path LOGGING_CONFIG_PATH]
23- [--headless]
24- filename
22+ [--headless] [--status] [--version]
23+ [ filename]
2524
2625Render plain code to target code. Path arguments resolve based on where they
2726were written: values given on the command line are resolved against the
@@ -39,7 +38,7 @@ positional arguments:
3938
4039options:
4140 -h, --help show this help message and exit
42- --verbose, -v Enable verbose output
41+ --verbose, -v Set default log level to DEBUG for TUI and file logs
4342 --base-folder BASE_FOLDER
4443 Base folder for the build files
4544 --build-folder BUILD_FOLDER
@@ -66,18 +65,17 @@ options:
6665 --force-render Force re-render of all the required modules.
6766 --unittests-script UNITTESTS_SCRIPT
6867 Shell script to run unit tests on generated code.
69- Receives the build folder path as its first argument
70- (default: 'plain_modules').
71- --conformance-tests-folder CONFORMANCE_TESTS_FOLDER
72- Folder for conformance test files
68+ Receives the module's code folder path as its first
69+ argument (e.g. `plain_modules/module_name/code`).
7370 --conformance-tests-script CONFORMANCE_TESTS_SCRIPT
7471 Path to conformance tests shell script. Every
7572 conformance test script should accept two arguments:
76- 1) Path to a folder (e.g. `plain_modules/module_name`)
77- containing generated source code, 2) Path to a
78- subfolder of the conformance tests folder (e.g.
79- `conformance_tests/subfoldername`) containing test
80- files.
73+ 1) Path to a folder (e.g.
74+ `plain_modules/module_name/code`) containing generated
75+ source code, 2) Path to a subfolder of the module's
76+ tests folder (e.g.
77+ `plain_modules/module_name/tests/subfoldername`)
78+ containing test files.
8179 --prepare-environment-script PREPARE_ENVIRONMENT_SCRIPT
8280 Path to a shell script that prepares the testing
8381 environment. The script should accept the source code
@@ -90,9 +88,9 @@ options:
9088 --api-key API_KEY API key used to access the API. If not provided, the
9189 `CODEPLAIN_API_KEY` environment variable is used.
9290 --full-plain Full preview ***plain specification before code
93- generation.Use when you want to preview context of all
94- ***plain primitives that are going to be included in
95- order to render the given module.
91+ generation. Use when you want to preview context of
92+ all ***plain primitives that are going to be included
93+ in order to render the given module.
9694 --dry-run Dry run preview of the code generation (without
9795 actually making any changes).
9896 --replay-with REPLAY_WITH
@@ -109,10 +107,10 @@ options:
109107 Target folder to copy rendered contents of code to
110108 (used only if --copy-build is set).
111109 --copy-conformance-tests
112- If set, copy the conformance tests of code in
113- `--conformance-tests- folder` folder to `--conformance-
114- tests-dest` folder successful rendering. Requires
115- --conformance-tests-script.
110+ If set, copy the module's conformance tests (from
111+ `<build- folder>/<module>/tests`) to `--conformance-
112+ tests-dest` folder after successful rendering.
113+ Requires --conformance-tests-script.
116114 --conformance-tests-dest CONFORMANCE_TESTS_DEST
117115 Target folder to copy conformance tests of code to
118116 (used only if --copy-conformance-tests is set).
@@ -123,6 +121,10 @@ options:
123121 --headless Run in headless mode: no TUI, no terminal output
124122 except a single render-started message. All logs are
125123 written to the log file.
124+ --status Display account status including user information, API
125+ key label, and rendering credits. Does not render any
126+ code.
127+ --version Display the client version and exit.
126128
127129configuration:
128130 --config-name CONFIG_NAME
0 commit comments