Skip to content
Snippets Groups Projects
Commit 449c1762 authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

distance-oracle: fix docs and cli help

parent f290f3c7
No related branches found
No related tags found
1 merge request!285distance oracle scheduler
Pipeline #38585 failed
...@@ -20,8 +20,10 @@ use clap::Parser; ...@@ -20,8 +20,10 @@ use clap::Parser;
struct Cli { struct Cli {
#[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")] #[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")]
evaluation_result_dir: String, evaluation_result_dir: String,
/// Number of seconds between two evaluations (oneshot if absent)
#[clap(short = 'i', long, default_value = "None")] #[clap(short = 'i', long, default_value = "None")]
interval: Option<u64>, interval: Option<u64>,
/// Node used for fetching state
#[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")]
rpc_url: String, rpc_url: String,
/// Log level (off, error, warn, info, debug, trace) /// Log level (off, error, warn, info, debug, trace)
......
...@@ -137,7 +137,7 @@ pub struct DistanceOracle { ...@@ -137,7 +137,7 @@ pub struct DistanceOracle {
/// Number of seconds between two evaluations (oneshot if absent) /// Number of seconds between two evaluations (oneshot if absent)
#[clap(short = 'i', long)] #[clap(short = 'i', long)]
pub interval: Option<u64>, pub interval: Option<u64>,
/// Local forging node /// Node used for fetching state
#[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")]
pub rpc_url: String, pub rpc_url: String,
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment