Liquibase: generateChangeLog ignores liquibase.properties, but status works

When running:

.\liquibase.bat --logLevel=debug generateChangeLog

  • The properties in liquibase.properties are ignored, and the database connection fails.

However, the command:

.\liquibase.bat --logLevel=debug status

  • Works correctly with the same liquibase.properties settings.

Question:
Is this a Liquibase bug, or is there a specific order of arguments needed for generateChangeLog to read liquibase.properties correctly?