Skip to content

Commit 25eb509

Browse files
committed
Add --typescript flag
1 parent cb0c000 commit 25eb509

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func main() {
2222
var libraryVersion string
2323
pflag.StringVar(&libraryVersion, "library-version", "latest", "The version of the JavaScript library to use, e.g. 0.8")
2424

25+
var typescript bool
26+
pflag.BoolVar(&typescript, "typescript", false, "Whether to use TypeScript or JavaScript.")
27+
2528
pflag.Usage = func() {
2629
fmt.Fprintf(os.Stderr, "Usage: %s <command> [...]\n", os.Args[0])
2730
fmt.Fprintln(os.Stderr, "\nCommands:")

0 commit comments

Comments
 (0)