CLI_compatibility¶
This doc applies to the case when protoprimer is used as bootstrap app - see app_vs_lib.
CLI compatibility for bootstrap app¶
Bootstrap process requires CLI compatibility to transition to meta runtime primer_runtime.
When entry_script switches between
primer_runtime,
it must implement the same command line interface (CLI) (to handle the same set of args)
if it uses boot_env function (see boot_env).
Otherwise, they will behave differently.
From the user point of view (as exposed via CLI), the script will appear identical in both cases.
It is normally achieved by calling parse_args from protoprimer.primer_kernel.
This requirement does not apply to start_app function (see start_app).