Skip to content

Commit

Permalink
Add documentation for option passing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Apr 18, 2023
1 parent e54fbc4 commit 6b04730
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/py_matter_idl/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ scripts/py_matter_idl/examples/matter_idl_plugin:
"matter_idl_plugin" subdirectory.
4. Execute the `codegen.py` script passing the path to the parent directory of
"matter_idl_plugin" via
`--generator custom:<plugin_path>:<plugin_module_name>` argument.
`--generator custom:<plugin_path>:<plugin_module_name>` argument and package
name like `--option package:com.example.matter.proto`

```
# From top-of-tree in this example
./scripts/codegen.py --generator custom:./scripts/py_matter_idl/examples:matter_idl_plugin ./src/controller/data_model/controller-clusters.matter
./scripts/codegen.py \
--generator custom:./scripts/py_matter_idl/examples:matter_idl_plugin \
--option package:com.example.matter.proto \
./src/controller/data_model/controller-clusters.matter
```

0 comments on commit 6b04730

Please sign in to comment.