From 6b75ec92a7d967ebf0eefd25abaa9c5254884fbf Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu <xuliuchengxlc@gmail.com> Date: Tue, 27 Jul 2021 16:43:27 +0800 Subject: [PATCH] More readable help for --sync option (#9441) --- substrate/client/cli/src/params/network_params.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/substrate/client/cli/src/params/network_params.rs b/substrate/client/cli/src/params/network_params.rs index 185a93f66b3..dd2e09e4a8c 100644 --- a/substrate/client/cli/src/params/network_params.rs +++ b/substrate/client/cli/src/params/network_params.rs @@ -128,10 +128,13 @@ pub struct NetworkParams { pub ipfs_server: bool, /// Blockchain syncing mode. - /// Full - Download and validate full blockchain history (Default). - /// Fast - Download blocks and the latest state only. - /// FastUnsafe - Same as Fast, but do skips downloading state proofs. - #[structopt(long, default_value = "Full")] + /// + /// - `Full`: Download and validate full blockchain history. + /// + /// - `Fast`: Download blocks and the latest state only. + /// + /// - `FastUnsafe`: Same as `Fast`, but skip downloading state proofs. + #[structopt(long, value_name = "SYNC_MODE", default_value = "Full")] pub sync: SyncMode, } -- GitLab