More readable help for --sync option (#9441)

This commit is contained in:
Liu-Cheng Xu
2021-07-27 16:43:27 +08:00
committed by GitHub
parent 845e6a5ff1
commit 6b75ec92a7
@@ -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,
}