Document the `env` arg for cmdmod functions, Fix #5772
Merge pull request #5792 from basepi/envdoc5772

Document the `env` arg for cmdmod functions, Fix #5772