diff --git a/lib/core/core/cli/dbex.rs b/lib/core/core/cli/dbex.rs index a7e91a6024f11f7f4db867cab77ccc9857b9ae06..2ad18a577e993ec8afbefce026d1e7ab2c880908 100644 --- a/lib/core/core/cli/dbex.rs +++ b/lib/core/core/cli/dbex.rs @@ -37,25 +37,25 @@ pub enum DbExSubCommand { name = "distance", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] - /// durs databases explorer (distances datas) + /// Web of Trust distances explorer DistanceOpt(DistanceOpt), #[structopt( name = "members", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] - /// durs databases explorer (members datas) + /// Members explorer MembersOpt(MembersOpt), #[structopt( name = "member", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] - /// durs databases explorer (member datas) + /// Member explorer MemberOpt(MemberOpt), #[structopt( name = "balance", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] - /// durs databases explorer (balances datas) + /// Pubkeys’ balances explorer BalanceOpt(BalanceOpt), } diff --git a/lib/core/core/cli/mod.rs b/lib/core/core/cli/mod.rs index 0e6cdf6e013a1d0008001be321153317cae1255c..4c9bdddb2e46f1c21b6bcf6d36014166087dcdce 100644 --- a/lib/core/core/cli/mod.rs +++ b/lib/core/core/cli/mod.rs @@ -37,11 +37,11 @@ use log::Level; /// Rust implementation of Duniter pub struct DursOpt { #[structopt(short = "p", long = "profile")] - /// Set a custom user datas folder + /// Set a custom user data folder profile_name: Option<String>, #[structopt(short = "l", long = "logs", raw(next_line_help = "true"))] - /// Set the level of logs verbosity. (Default is INFO). - /// Possible values : [OFF, ERROR, WARN, INFO, DEBUG, TRACE] + /// Set log level. (Defaults to INFO). + /// Available levels: [OFF, ERROR, WARN, INFO, DEBUG, TRACE] logs_level: Option<Level>, #[structopt(subcommand)] /// CoreSubCommand @@ -52,33 +52,33 @@ pub struct DursOpt { /// Core cli subcommands pub enum CoreSubCommand { #[structopt(name = "enable")] - /// Enable some module + /// Enable a module EnableOpt(EnableOpt), #[structopt(name = "disable")] - /// Disable some module + /// Disable a module DisableOpt(DisableOpt), #[structopt(name = "modules")] - /// list modules + /// List available modules ListModulesOpt(ListModulesOpt), #[structopt(name = "start")] - /// start durs server + /// Start node StartOpt(StartOpt), #[structopt(name = "sync")] - /// synchronization + /// Synchronize SyncOpt(SyncOpt), - /// reset data or conf or all + /// Reset data or conf or all #[structopt( name = "reset", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] ResetOpt(ResetOpt), - /// durs databases explorer + /// Database explorer #[structopt( name = "dbex", raw(setting = "structopt::clap::AppSettings::ColoredHelp") )] DbExOpt(DbExOpt), - /// keys operations + /// Keys operations #[structopt( name = "keys", author = "inso <inso@tuta.io>", diff --git a/lib/core/core/cli/reset.rs b/lib/core/core/cli/reset.rs index ba5529ff44a755e652540985b91e1317c06ca067..02f24243541332e0cb3b091b743faea4e4d4e102 100644 --- a/lib/core/core/cli/reset.rs +++ b/lib/core/core/cli/reset.rs @@ -19,9 +19,9 @@ use crate::cli::InvalidInput; use std::str::FromStr; #[derive(StructOpt, Debug, Copy, Clone)] -/// start durs server +/// Reset data or configuration pub struct ResetOpt { - /// choose type datas to reset + /// Kind of data to be reseted: data, conf, all pub reset_type: ResetType, } @@ -44,7 +44,7 @@ impl FromStr for ResetType { "data" => Ok(ResetType::Datas), "conf" => Ok(ResetType::Conf), "all" => Ok(ResetType::All), - _ => Err(InvalidInput("Values accepted are : data, conf, all.")), + _ => Err(InvalidInput("Kind of data to be reseted: data, conf, all.")), } } } diff --git a/lib/modules/blockchain/blockchain/src/dbex.rs b/lib/modules/blockchain/blockchain/src/dbex.rs index 6cfca059fe7ff64d670762e6325115af91847f82..2c081f62febf7d62726d879a3270a36caf017916 100644 --- a/lib/modules/blockchain/blockchain/src/dbex.rs +++ b/lib/modules/blockchain/blockchain/src/dbex.rs @@ -89,7 +89,7 @@ pub fn dbex_tx<DC: DuniterConf>(profile: &str, conf: &DC, _csv: bool, query: &DB { pubkey } else { - println!("This address doesn't exist !"); + println!("This address doesn't exist!"); return; }; let address = UTXOConditionsGroup::Single(TransactionOutputCondition::Sig(pubkey));