MZ [Solved] How to update plugin commands with new arguments (with backwards compatibility in mind)?

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?
  1. 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.
  2. Creating new specific commands for these new arguments.
Thank you for your feedback.
You don't need to worry about backwards compatibility when it comes to added plugin command parameters, just go ahead and add them. If someone's using the older version, your code won't be trying to access the new parameters anyway so there's nothing to cause a conflict.
Thank you for your feedback.
If someone's using the older version, your code won't be trying to access the new parameters anyway
Indeed, this remark is really relevant. And after a little experimentation, I finally confirmed it. :ehappy:

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-update-plugin-commands-with-new-arguments-with-backwards-compatibility-in-mind.141014/