Skip to content

Commit 16d09db

Browse files
committed
Update help doc
1 parent 38afce3 commit 16d09db

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doc/flatcc-help.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
```
21
flatcc FlatBuffers schema compiler for C by dvide.com
3-
version: 0.5.2-pre
2+
version: 0.6.2
43
usage: flatcc [options] file [...]
54
options:
65
--reader (default) Generate reader
@@ -12,6 +11,7 @@ options:
1211
-r, --recursive Recursively generate included schema files
1312
-a Generate all (like -cwvr)
1413
-g Use _get suffix only to avoid conflicts
14+
-s Silence warnings
1515
-d Dependency file like gcc -MMD
1616
-I<inpath> Search path for include files (multiple allowed)
1717
-o<outpath> Write files relative to this path (dir must exist)
@@ -63,6 +63,11 @@ only 'Monster_name_get(monster)` will be generated and not also
6363
'Monster_name(monster)'. This avoids potential conflicts with
6464
other generated symbols when a schema change is impractical.
6565

66+
-s Silence warnings, notably on potential conflicts that might cause
67+
C source code to generate errors. These warnings are not perfect and can
68+
be ignored if the C code compiles, though it is recommended to change
69+
names in the schema if possible.
70+
6671
-d generates a dependency file, e.g. 'monster.fbs.d' in the output dir.
6772

6873
--depfile implies -d but accepts an explicit filename with a path
@@ -103,4 +108,3 @@ time assertions and inline functions but an optional set of portability
103108
headers can be included to work with most any compiler. The portability
104109
layer is not throughly tested so a platform specific test is required
105110
before production use. Upstream patches are welcome.
106-
```

0 commit comments

Comments
 (0)