Skip to content

-x --x-arg for commands other than upgrade/downgrade/migrate #1313

Closed Answered by CaselIT
xmikew asked this question in Usage Questions
Discussion options

You must be logged in to vote

-x is an argument of the alembic base command, so it will be shown only if you do alembic --help.

passing in -x to either of these causes an error and the command does not run. alembic 1.11.1. I'm running 'flask db check -x db --x-arg dbname1,dbname2

passing -x like that will not work also when using upgrade or downgrade: running alembic upgrade -x foo head will also error with alembic: error: unrecognized arguments: -x head
Like in the other cases you will have to place -x before specifying the command to pass alembic

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xmikew
Comment options

@CaselIT
Comment options

Answer selected by xmikew
@xmikew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants