Skip to content

Commit

Permalink
default language is linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hrissan committed Jun 19, 2024
1 parent 658e5af commit f95ab43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ build:
@$(GO) build -ldflags "$(COMMON_LDFLAGS)" -buildvcs=false -o target/bin/tlgen ./cmd/tlgen

tlo-bootstrap: build
@./target/bin/tlgen \
@./target/bin/tlgen -v --language=go \
--copyrightPath=./COPYRIGHT \
--pkgPath=github.com/vkcom/tl/internal/tlast/gentlo/tl \
--basicPkgPath=github.com/vkcom/tl/pkg/basictl \
Expand Down
4 changes: 2 additions & 2 deletions cmd/tlgen/main2.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const tlExt = ".tl"

func parseFlags(opt *tlcodegen.Gen2Options) {
// General
flag.StringVar(&opt.Language, "language", "go",
`generation target language`)
flag.StringVar(&opt.Language, "language", "",
`generation target language (go, cpp). Empty for linter.`)
flag.StringVar(&opt.Outdir, "outdir", "",
`where to write generated files`)
flag.StringVar(&opt.CopyrightFilePath, "copyrightPath", "",
Expand Down

0 comments on commit f95ab43

Please sign in to comment.