2024-01-03 10:24:52 +00:00
|
|
|
use clap::{arg, command, Command};
|
|
|
|
|
|
|
|
pub fn cli_app<'a>() -> Command<'a> {
|
|
|
|
command!()
|
|
|
|
.arg(arg!(-c --config <FILE> "Sets a custom config file"))
|
2024-08-12 09:07:06 +00:00
|
|
|
.arg(arg!(--"log-config-file" [FILE] "Sets log configuration file (Default: log_config)"))
|
2024-07-11 03:54:13 +00:00
|
|
|
.arg(arg!(--"miner-key" [KEY] "Sets miner private key (Default: None)"))
|
2024-07-10 07:36:10 +00:00
|
|
|
.arg(
|
2024-07-11 03:54:13 +00:00
|
|
|
arg!(--"blockchain-rpc-endpoint" [URL] "Sets blockchain RPC endpoint (Default: http://127.0.0.1:8545)")
|
2024-07-10 07:36:10 +00:00
|
|
|
)
|
2024-07-11 03:54:13 +00:00
|
|
|
.arg(arg!(--"db-max-num-chunks" [NUM] "Sets the max number of chunks to store in db (Default: None)"))
|
2024-01-03 10:24:52 +00:00
|
|
|
.allow_external_subcommands(true)
|
|
|
|
}
|