It appears that it only works for diff and diffChangeLog, not got generateChangeLog.
Here is a chunk of the source code for the command line (see https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L299-L329 to see it in context)
- } else if ("diff".equalsIgnoreCase(command)
- || "diffChangeLog".equalsIgnoreCase(command)) {
- if (commandParams.size() > 0) {
- for (String cmdParm : commandParams) {
- if (!cmdParm.startsWith("--referenceUsername")
- && !cmdParm.startsWith("--referencePassword")
- && !cmdParm.startsWith("--referenceDriver")
- && !cmdParm.startsWith("--referenceDefaultCatalogName")
- && !cmdParm.startsWith("--referenceDefaultSchemaName")
- && !cmdParm.startsWith("--includeSchema")
- && !cmdParm.startsWith("--includeCatalog")
- && !cmdParm.startsWith("--includeTablespace")
- && !cmdParm.startsWith("--schemas")
- && !cmdParm.startsWith("--outputSchemasAs")
- && !cmdParm.startsWith("--referenceSchemas")
- && !cmdParm.startsWith("--referenceUrl")
- && !cmdParm.startsWith("--excludeObjects")
- && !cmdParm.startsWith("--includeObjects")
- && !cmdParm.startsWith("--diffTypes")) {
- messages.add("unexpected command parameter: " + cmdParm);
- }
- }
- } else if ("snapshot".equalsIgnoreCase(command)
- || "generateChangeLog".equalsIgnoreCase(command)) {
- if (commandParams.size() > 0) {
- for (String cmdParm : commandParams) {
- if (!cmdParm.startsWith("--includeSchema")
- && !cmdParm.startsWith("--includeCatalog")
- && !cmdParm.startsWith("--includeTablespace")
- && !cmdParm.startsWith("--schemas")) {
- messages.add("unexpected command parameter: " + cmdParm);
- }
- }
- }
- }
Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/