On 2023-01-29 at 16:51:20 +1100,
Cameron Simpson <[email protected]> wrote:
> They're unrelated. As others have mentioned, "--" is _extremely_ common;
> almost _all_ UNIX command like programmes which handle -* style options
> honour the "--" convention. _argparse_ itself honours that convention, as
> does getopt etc.
And why do UNIX programs behave this way?
Because POSIX says they should:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
--
https://mail.python.org/mailman/listinfo/python-list