@echo off setlocal if "%~1"=="" ( echo Usage: new_migration.bat "message" exit /b 1 ) alembic revision --autogenerate -m "%~1" endlocal