Readme update

This commit is contained in:
Ganesh Viswanathan 2020-03-15 22:23:22 -05:00
commit 077981c3a5

View file

@ -90,16 +90,18 @@ Refer to the ```tests``` directory for examples on how the library can be used.
The `toast` binary can also be used directly on the CLI: The `toast` binary can also be used directly on the CLI:
``` ```
toast -h > toast -h
Usage: Usage:
main [optional-params] C/C++ source/header main [optional-params] C/C++ source/header
Options(opt-arg sep :|=|spc): Options:
-h, --help print this cligen-erated help -h, --help print this cligen-erated help
--help-syntax advanced: prepend,plurals,.. --help-syntax advanced: prepend,plurals,..
-k, --check bool false check generated wrapper with compiler -k, --check bool false check generated wrapper with compiler
-d, --debug bool false enable debug output -d, --debug bool false enable debug output
-D=, --defines= strings {} definitions to pass to preprocessor -D=, --defines= strings {} definitions to pass to preprocessor
-l=, --dynlib= string "" Import symbols from library in specified Nim string -l=, --dynlib= string "" import symbols from library in specified Nim string
-f=, --feature= Features {} flags to enable experimental features
-H, --includeHeader bool false add {.header.} pragma to wrapper
-I=, --includeDirs= strings {} include directory to pass to preprocessor -I=, --includeDirs= strings {} include directory to pass to preprocessor
-m=, --mode= string "cpp" language parser: c or cpp -m=, --mode= string "cpp" language parser: c or cpp
--nim= string "nim" use a particular Nim executable (default: $PATH/nim) --nim= string "nim" use a particular Nim executable (default: $PATH/nim)
@ -107,13 +109,13 @@ Options(opt-arg sep :|=|spc):
-o=, --output= string "" file to output content - default stdout -o=, --output= string "" file to output content - default stdout
-a, --past bool false print AST output -a, --past bool false print AST output
-g, --pgrammar bool false print grammar -g, --pgrammar bool false print grammar
--pluginSourcePath= string "" Nim file to build and load as a plugin --pluginSourcePath= string "" nim file to build and load as a plugin
-n, --pnim bool false print Nim output -n, --pnim bool false print Nim output
-E=, --prefix= strings {} Strip prefix from identifiers -E=, --prefix= strings {} strip prefix from identifiers
-p, --preprocess bool false run preprocessor on header -p, --preprocess bool false run preprocessor on header
-r, --recurse bool false process #include files -r, --recurse bool false process #include files
-s, --stub bool false stub out undefined type references as objects -s, --stub bool false stub out undefined type references as objects
-F=, --suffix= strings {} Strip suffix from identifiers -F=, --suffix= strings {} strip suffix from identifiers
-O=, --symOverride= strings {} skip generating specified symbols -O=, --symOverride= strings {} skip generating specified symbols
``` ```