mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00

Some checks failed
abi-consistent-check / build-and-compare (push) Has been cancelled
code-coverage / unittest-cov (push) Has been cancelled
rust / check (push) Has been cancelled
rust / test (push) Has been cancelled
rust / lints (push) Has been cancelled
functional-test / test (push) Has been cancelled
* Add debug log config * Add config file for ssd and hdd * Set most default value for ssd and hdd config file
14 lines
631 B
Rust
14 lines
631 B
Rust
use clap::{arg, command, Command};
|
|
|
|
pub fn cli_app<'a>() -> Command<'a> {
|
|
command!()
|
|
.arg(arg!(-c --config <FILE> "Sets a custom config file"))
|
|
.arg(arg!(--"log-config-file" [FILE] "Sets log configuration file (Default: log_config)"))
|
|
.arg(arg!(--"miner-key" [KEY] "Sets miner private key (Default: None)"))
|
|
.arg(
|
|
arg!(--"blockchain-rpc-endpoint" [URL] "Sets blockchain RPC endpoint (Default: http://127.0.0.1:8545)")
|
|
)
|
|
.arg(arg!(--"db-max-num-chunks" [NUM] "Sets the max number of chunks to store in db (Default: None)"))
|
|
.allow_external_subcommands(true)
|
|
}
|