Add --include-deps to push command by gferon · Pull Request #10044 · docker/compose (original) (raw)

While I don't expect many users to rely on this, I'm a bit concerned about another backward compatibility break.

Fair point, I can definitely move it to a --no-deps flag instead, but this would be inconsistent with docker-compose pull. What about setting the value of this flag to true instead and let users pass --include-deps=false instead?

Also, to avoid code duplication, could define a func

Sure, can you point me to a good place to do this? I'm not familiar with this codebase to select a proper location myself.