Skip to content

Commit 2f940a2

Browse files
force to specify basicRPCPath or generateRPCCode
1 parent 6bd181f commit 2f940a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/tlgen/main2.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func runMain(argv *arguments) error {
9595
if argv.SchemaFileName != "" {
9696
return fmt.Errorf("--schema argument is removed, specify 1 or more input TL schema filenames after flags")
9797
}
98+
if argv.GenerateRPCCode && argv.BasicRPCPath == "" {
99+
return fmt.Errorf("--basicRPCPath must be specified or set --generateRPCCode=false if you don't use rpc code")
100+
}
98101
args = append(args, flag.Args()...)
99102
if len(args) == 0 {
100103
return fmt.Errorf("specify 1 or more input TL schema filenames after flags")

0 commit comments

Comments
 (0)