Skip to content

Commit

Permalink
force to specify basicRPCPath or generateRPCCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Brat-vseznamus committed May 22, 2024
1 parent 6bd181f commit 2f940a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/tlgen/main2.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ func runMain(argv *arguments) error {
if argv.SchemaFileName != "" {
return fmt.Errorf("--schema argument is removed, specify 1 or more input TL schema filenames after flags")
}
if argv.GenerateRPCCode && argv.BasicRPCPath == "" {
return fmt.Errorf("--basicRPCPath must be specified or set --generateRPCCode=false if you don't use rpc code")
}
args = append(args, flag.Args()...)
if len(args) == 0 {
return fmt.Errorf("specify 1 or more input TL schema filenames after flags")
Expand Down

0 comments on commit 2f940a2

Please sign in to comment.