Liquibase命令行含连字符的命令执行失败问题求助
I've only been working with Liquibase for a week, and I'm stuck on a critical technical issue right now. Whenever I try to run Liquibase commands with hyphens (like rollback-count or update-to-tag), both of the execution methods I've tried throw errors.
First Execution Method (No --command Flag, Following Official Docs)
I ran the command exactly as shown in the official documentation:
liquibase --changelog-file=mychangelog.sql rollback-count 1
This returned the error:
Unexpected value ‘rollback-count’, options must start with a '–'
Second Execution Method (Using --command Flag)
I tried wrapping the hyphenated command with the --command option, using this syntax:
liquibase --changelog-file=mychangelog.sql --command=rollback-count 1
But this also failed, giving me the error:
Unexpected value ‘1’, options must start with a '–'
The frustrating part is that commands without hyphens (like update or rollback tag1.1) work flawlessly. I can't pinpoint why these hyphenated commands won't execute regardless of which approach I take.
Could anyone share some insight or a solution to this problem? I'd be extremely grateful for any help!
内容的提问来源于stack exchange,提问作者Minh Tran

