Module cli

Source
Expand description

ยงCommand Line Interface

This module defines command line interface for server binaries. Clap is used for easy generation of help messages and handling arguments.

Structsยง

Args
Clementine (C) 2025 Chainway Limited

Enumsยง

Actor
Available actor types that can be run as services
Command
ConfigSource

Functionsยง

get_cli_args
Returns CLI arguments after handling help/version cases with BridgeError.
get_config
Gets configuration using CLI arguments, for binaries. If there are any errors, prints error and panics.
get_config_from_args ๐Ÿ”’
Wrapped function for tests
get_config_source ๐Ÿ”’
Selects a configuration source for the main config or the protocol paramset.
parse_cli_args ๐Ÿ”’
Parse given iterator with our clap Args and handle help/version cases.