Skip to content

Commit

Permalink
Merge pull request #343 from bavix/bc-message-2x
Browse files Browse the repository at this point in the history
[2.x] [BC] Backwards Compatibility Warning
  • Loading branch information
rez1dent3 authored Jul 10, 2024
2 parents 960f59b + 8500843 commit 16cc48f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ func main() {

flag.Parse()

for _, arg := range os.Args {
for _, str := range []string{"-stub", "-import", "-output"} {
if strings.HasPrefix(arg, str) {
logger.
Error().
Msgf("Deprecated %s. Use -%s. The behavior will be removed in the next major version.", arg, arg)
}
}
}

// parse proto files
protoPaths := flag.Args()

Expand Down

0 comments on commit 16cc48f

Please sign in to comment.