Skip to content

Commit

Permalink
docs: add more docs to command
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 20, 2023
1 parent a5ab820 commit dc49124
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/celestia-appd/cmd/addrbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ func addrbookCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "addrbook peers.txt addrbook.json",
Short: "Convert a list of peers into an address book",
Args: cobra.ExactArgs(2),
Long: "Convert a list of peers into an address book.\n" +
"The first argument (peers.txt) should contain a new line separated list of peers. The format for a peer is `id@ip:port` or `id@domain:port`.\n" +
"The second argument (addrbook.json) should be the output filename. The address book is saved to the output file in JSON format.\n",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
inputFile := args[0]
outputFile := args[1]
Expand Down

0 comments on commit dc49124

Please sign in to comment.