Skip to content

Commit

Permalink
Add a warning for using tabs in struct tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Maelkum committed Apr 9, 2024
1 parent 277c8bb commit 5006c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ var DefaultConfig = Config{
},
}

// NOTE: When adding CLI flags (using the `flag` struct tag) - add the description for (for the flag long version, not the shorthand) it in getFlagDescription() below.

// Config describes the Blockless configuration options.
// NOTE: DO NOT use TABS in struct tags - spaces only!
// NOTE: When adding CLI flags (using the `flag` struct tag) - add the description for (for the flag long version, not the shorthand) it in getFlagDescription() below.
type Config struct {
Role string `koanf:"role" flag:"role,r"`
Concurrency uint `koanf:"concurrency" flag:"concurrency,c"`
Expand Down

0 comments on commit 5006c74

Please sign in to comment.