Fixed inconsistent usage of keep_local and local_only kwarg in Help() function, its implementation and docs
Contributor Checklist:
- [ ] I have created a new test or updated the unit tests to cover the new/changed functionality.
- [x] I have updated
CHANGES.txt(and read theREADME.rst) - [x] I have updated the appropriate documentation
Not sure why you believe this change is needed? local_only, means only the local addoptions args are in the help.. what's the concern here?
@bdbaddog the concern is that documentation is inconsistent with actual behavior.
Currently, the docs mention the following prototype for the Help() function:
env.Help(text, append=False, local_only=False)
While actual implementation in https://github.com/SCons/scons/blob/4f3e3026bc455b3b47666567f273b2f84f932d32/SCons/Script/init.py#L254 uses the keep_local kwarg name.
I made the documentation consistent with the actual implementation - in order to not break any third-party code that relies on existing behavior. I also renamed the kwarg inside the implementation to avoid confusion.
Seems like it would be simpler to just make everything local_only and not keep_local
also calling Help() in your SConscript calls SCons.SConscript.Help(), and not PrintHelp() (not directly).
Help() calls HelpFunction() which calls PrintHelp()
So the public interface is SCons.SConscript.Help(), and that's what's misdocumented. (and mis doc-string'ed too I think)
Thoughts @mwichmann ?
Replacing this with #4670