Skip to content

Commit e3d0ca1

Browse files
authored
Help updates (#464)
* update help text * update * update
1 parent a8eb269 commit e3d0ca1

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cmd/es-node/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func main() {
7474
{
7575
Name: "init",
7676
Aliases: []string{"i"},
77-
Usage: `Init storage node by creating a data file for each shard. Type 'es-node init --help' for more information.`,
78-
UsageText: `You can specify shard_len (the number of shards) or shard_index (the index of specified shard, and you can specify more than one) to mine. If both appears, shard_index takes precedence. `,
77+
Usage: `Initialize shard data files (one per shard). Type 'es-node init --help' for more information.`,
78+
UsageText: `Use --shard_len to create N sequential shards starting at 0, or --shard_index to list one or more explicit shard indices (repeatable). If both are supplied, --shard_index wins.`,
7979
Flags: []cli.Flag{
8080
cli.Uint64Flag{
8181
Name: shardLenFlagName,
@@ -100,8 +100,8 @@ func main() {
100100
{
101101
Name: "sync",
102102
Aliases: []string{"s"},
103-
Usage: fmt.Sprintf("Download a blob from an RPC node and update it in local storage. Type 'es-node sync --help' for more information."),
104-
UsageText: fmt.Sprintf("Sync local data specified by `%s` from RPC specified by `%s`", kvIndexFlagName, esRpcFlagName),
103+
Usage: "Fetch a single blob (by KV index) from a remote EthStorage RPC and write it into local storage. Type 'es-node sync --help' for more information.",
104+
UsageText: fmt.Sprintf("Requires --%s (KV index) and --%s (RPC endpoint).", kvIndexFlagName, esRpcFlagName),
105105
Flags: []cli.Flag{
106106
cli.Uint64Flag{
107107
Name: kvIndexFlagName,
@@ -121,8 +121,8 @@ func main() {
121121
},
122122
{
123123
Name: "email",
124-
Aliases: []string{"mail"},
125-
Usage: "Send a test email using the configured SMTP settings",
124+
Aliases: []string{"m"},
125+
Usage: "Send a test email using the configured SMTP settings.",
126126
Flags: email.CLIFlags(),
127127
Action: func(ctx *cli.Context) error {
128128
emailConfig, err := email.GetEmailConfig(ctx)

ethstorage/flags/flags.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ var (
2525
//}
2626
DataDir = cli.StringFlag{
2727
Name: "datadir",
28-
Usage: "Data directory for the storage files, databases and keystore",
28+
Usage: "(Required) Data directory for the storage files, databases and keystore",
2929
EnvVar: utils.PrefixEnvVar("DATADIR"),
3030
}
3131
L1NodeAddr = cli.StringFlag{
3232
Name: "l1.rpc",
33-
Usage: "Address of L1 User JSON-RPC endpoint to use (eth namespace required)",
33+
Usage: "(Required) Address of L1 User JSON-RPC endpoint to use (eth namespace required)",
3434
EnvVar: utils.PrefixEnvVar("L1_ETH_RPC"),
3535
}
3636
L1BeaconAddr = cli.StringFlag{
3737
Name: "l1.beacon",
38-
Usage: "Address of L1 beacon chain endpoint to use",
38+
Usage: "(Required) Address of L1 beacon chain endpoint to use",
3939
EnvVar: utils.PrefixEnvVar("L1_BEACON_URL"),
4040
}
4141
L1BlockTime = cli.Uint64Flag{
@@ -128,7 +128,7 @@ var (
128128
// TODO: move storage flag to storage folder
129129
StorageFiles = cli.StringSliceFlag{
130130
Name: "storage.files",
131-
Usage: "File paths where the data are stored",
131+
Usage: "(Required) File paths where the data are stored",
132132
EnvVar: utils.PrefixEnvVar("STORAGE_FILES"),
133133
}
134134
StorageMiner = cli.StringFlag{
@@ -138,7 +138,7 @@ var (
138138
}
139139
StorageL1Contract = cli.StringFlag{
140140
Name: "storage.l1contract",
141-
Usage: "Storage contract address on l1",
141+
Usage: "(Required) Storage contract address on l1",
142142
EnvVar: utils.PrefixEnvVar("STORAGE_L1CONTRACT"),
143143
}
144144
StorageKvSize = cli.Uint64Flag{

0 commit comments

Comments
 (0)