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

node: fix distance-oracle cli

parent 25bdd2d3
Branches
Tags
1 merge request!285distance oracle scheduler
...@@ -129,12 +129,15 @@ pub struct Completion { ...@@ -129,12 +129,15 @@ pub struct Completion {
pub generator: clap_complete::Shell, pub generator: clap_complete::Shell,
} }
#[derive(Debug, clap::Args)] #[cfg(feature = "distance-oracle")]
#[derive(Debug, clap::Parser)]
pub struct DistanceOracle { pub struct DistanceOracle {
#[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")] #[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")]
pub evaluation_result_dir: String, pub evaluation_result_dir: String,
#[clap(short = 'i', long, default_value = "None")] /// Number of seconds between two evaluations (oneshot if absent)
#[clap(short = 'i', long)]
pub interval: Option<u64>, pub interval: Option<u64>,
/// Local forging node
#[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