Hi guys, I was wondering if it is possible, to de...
# general
b
Hi guys, I was wondering if it is possible, to define script arguments in the pex_binary target? Currently my target looks like this and have to pass the arguments manually:
Copy code
pex_binary(
    name="alembic",
    script="alembic",
    dependencies=[
        ":alembic_requirements",
    ],
)
My goal is to have something like this:
Copy code
pex_binary(
    name="makemigrations",
    script="alembic -n accounts revision --autogenerate",
    // or entry_point="alembic -n accounts revision --autogenerate",
    dependencies=[
        ":alembic_requirements",
    ],
)
Thanks and have a great weekend 🎉
e
@billions-bear-56484 it is not possible today. Pex would need to support this. You could vote up https://github.com/pantsbuild/pex/issues/987 or even try tackling it if you want. I'm happy to help shepherd your work if so.
b
Thanks for your feedback. Will vote up 🙂