dergraaf / library-builder

Module based library builder for source code libraries
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

Support Enum parameters #9

Closed ekiwi closed 8 years ago

ekiwi commented 8 years ago

As library-builder is using Python3, we could make use of native python Enums for parameters. For example for the target architecture. Using Enums makes it easier for users to discovery supported options and allows lbuild to quickly discover invalid arguments.

The xpcc device/driver files already support enum arguments (however, in a custom implementation, as we are using XML and Python2) for the same reasons as mentioned above.

dergraaf commented 8 years ago

With the commits before 32eb7d5e755f16fddf564b48db3353279ed5d48f enum options are now supported. Either with string lists or with Python enums directly.