Make `dotenv run` forward flags to given command by bbc2 · Pull Request #607 · theskumar/python-dotenv

@bbc2

Changes for users:

- (BREAKING) Forward flags passed after `dotenv run` to the given
  command instead of interpreting them.
    - This means that an invocation such as `dotenv run ls --help` will
      show the help page of `ls` instead of that of `dotenv run`.
    - To pass flags to `dotenv run` itself, pass them right after `run`:
      `dotenv run --help` or `dotenv run --override ls`.
    - As usual, generic options should be passed right after `dotenv`:
      `dotenv --file path/to/env run ls`

@bbc2 bbc2 deleted the run-forward-flags branch

January 17, 2026 11:53