Passing command line arguments for extensions

I’ve been working on an extension to Liquibase which needs a command line argument passed.


Initially I tried using java properties (i.e. System.getProperty("…")) but there needs to be a modification made to the liquibase shell and batch scripts to get java properties in that way (which I’m happy to submit a patch for but that’s another topic).


Is there something I should be extending/hooking-into to get command line arguments into my extension?


TIA

There is nothing currently in liquibase for getting command line parameters from an extension. It’s honestly something I had not thought of, but it seems like a good idea.


Do you have an example of how you would like it to work? We would need to make sure it also works with non-command line execution like Ant, Maven, etc.


Nathan