Small question about the update of plugin commands in a new plugin release.
I would like to add additional arguments to one of my plugin commands, and was wondering about the best practice for this. Specifically, one of my commands is the following: useCustomFont with fontName and fontSize as arguments. Now I would like to add new arguments, like fontColor, fontOutlineColor, fontOutlineWidth.
What would be the best way to integrate these new arguments?
I would like to add additional arguments to one of my plugin commands, and was wondering about the best practice for this. Specifically, one of my commands is the following: useCustomFont with fontName and fontSize as arguments. Now I would like to add new arguments, like fontColor, fontOutlineColor, fontOutlineWidth.
What would be the best way to integrate these new arguments?
- Extending the current useCustomFont command by simply adding these arguments to the list, while making it backwards compatible with its old calling version, so as not to penalize users in case of plugin updates.
- Creating new specific commands for these new arguments.