Skip to content

Commit

Permalink
small fix to cli descriptions and flag help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
pnx committed Aug 26, 2024
1 parent c769b6a commit 7197720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tools/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var VersionString string = "dev"
func main() {
rootCmd := &cobra.Command{
Use: "thalos-tools",
Short: "Collection of tools for dealing with the thalos application",
Short: "Collection of tools for dealing with the Thalos application",
FParseErrWhitelist: cobra.FParseErrWhitelist{
UnknownFlags: true,
},
Expand Down
4 changes: 2 additions & 2 deletions internal/config/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ func GetFlags() *pflag.FlagSet {
flags.Uint32("start-block", shipclient.NULL_BLOCK_NUMBER, "Start to stream from this block")
flags.Uint32("end-block", shipclient.NULL_BLOCK_NUMBER, "Stop streaming when this block is reached")

flags.Lookup("start-block").DefValue = "config value, cache, head from api"
flags.Lookup("start-block").DefValue = "Config value, cache, head from api"
flags.Lookup("end-block").DefValue = "none"

flags.Bool("irreversible-only", false, "Only stream irreversible blocks from ship")
flags.Int("max-msg-in-flight", 10, "Maximum messages that can be sent from SHIP without acknowledgement")
flags.String("chain", "", "ChainID used in channel namespace, can be any string (default from api)")

flags.StringSlice("blacklist", []string{}, "Define a list of 'contract:action' pairs that will be blacklisted (thalos will not process those actions)")
flags.StringSlice("blacklist", []string{}, "Define a list of 'contract:action' pairs that will be blacklisted (Thalos will not process those actions)")
flags.Bool("blacklist-is-whitelist", false, "Thalos will treat the blacklist as a whitelist")

return &flags
Expand Down

0 comments on commit 7197720

Please sign in to comment.