paul j3 added the comment: One way to reduce the testing burden, and to be extra safe regarding backward compatibility is to make this action optional, rather than the default.
For example, make `_prog_name` importable (i.e. change the name), and then expect the user to use it explicitly with: parser = argparse.ArgumentParser(prog=argparse.prog_name(), ...) and leave the `parse_args` stack unchanged. This would require an addition to the documentation. The user can then check for themselves whether `prog_name` gets the right name, given their packaging and calling method. It's a little more work for a package creator, but arguably it's a good thing to aware of. The added tests, if any, can focus on the output of this function, rather than the output of the 'print_help'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com