Skip to content

Commit

Permalink
fix cmd usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Sep 12, 2023
1 parent d47e25b commit 1b56474
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/celestia/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var probabilityOfAvailabilityCmd = &cobra.Command{
}

var getSharesByNamespaceCmd = &cobra.Command{
Use: "get-shares-by-namespace[dah, namespace]",
Use: "get-shares-by-namespace [dah, namespace]",
Short: "Gets all shares from an EDS within the given namespace.",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down Expand Up @@ -117,7 +117,7 @@ var getSharesByNamespaceCmd = &cobra.Command{
}

var getShare = &cobra.Command{
Use: "get-share[dah, row, col]",
Use: "get-share [dah, row, col]",
Short: "Gets a Share by coordinates in EDS.",
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down Expand Up @@ -156,6 +156,7 @@ var getShare = &cobra.Command{
}

ns := hex.EncodeToString(share.GetNamespace(sh))

return struct {
Namespace string `json:"namespace"`
Data []byte `json:"data"`
Expand All @@ -169,7 +170,7 @@ var getShare = &cobra.Command{
}

var getEDS = &cobra.Command{
Use: "get-eds[dah]",
Use: "get-eds [dah]",
Short: "Gets the full EDS identified by the given root",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 1b56474

Please sign in to comment.