google / google/flatbuffers

Support --root-type when compiling from proto

Open
#9,055 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

`--root-type` should generate `root_type Something;` line when used in `--proto` mode

## Expected
```bash
flatc --proto --root-type Something some.proto
```

should build some.fbs that contains line `root_type Something;`

## Actual
--root-type has not effect at all

## Workaround
```bash
flatc --proto some.proto
echo "root_type Something;" >> some.fbs
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.