Applies to:
- Liquibase Pro
- Liquibase Open Source (Community)
Conditions:
- Any version of Liquibase Pro or Liquibase Open Source
Issue Summary:
When attempting to run any Liquibase command (update, status, etc), an error will occur for unexpected arguments even though the argument is in the command.
Error Message:
Unexpected argument(s):
Root Cause:
This error message can be caused by two things:
- The argument itself doesn't exist
- The argument is being passed incorrectly
Resolution 1: The argument does not exist
If you provide any runtime CLI argument that does not exist inside of Liquibase, the unexpected argument(s) error will occur.
For example, the following command is run:
liquibase --my-argument=value update
the error will be
Unexpected argument(s): --my-argument=value
Please ensure that the argument being used is a valid Liquibase argument and that the syntax is correct. The full list of arguments can be viewed on the Liquibase Parameters page.
Resolution 2: Argument being passed incorrectly
If the argument is being passed as a global argument when it should be a command argument (and vice versa), the unexpected argument(s) error will occur.
For example, the following command will attempt to pass a global argument as a command argument:
liquibase update --vault-token=
which results in the following error:
Unexpected argument(s): --vault-token=The
--valut-token
is a global argument. You can view the difference on the Working with Command Parameters page.
Review the argument's documentation page to ensure that it is being passed correctly as either a global argument or a command argument.
Comments
0 comments
Article is closed for comments.