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.
With the commits before 32eb7d5e755f16fddf564b48db3353279ed5d48f enum options are now supported. Either with string lists or with Python enums directly.
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.