From f9c648789aa3e8ba4c139ab8c44d3f1612cce744 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Fri, 2 Oct 2020 21:19:12 +0800 Subject: [PATCH] Others: rephrase getopt The linked criticism to getopt only applies to the legacy stuff, which has no long arg support to start with. --- doc/others.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/others.rst b/doc/others.rst index e4f78b5..c1a4dd3 100644 --- a/doc/others.rst +++ b/doc/others.rst @@ -48,13 +48,13 @@ Then read through this list of influences and/or alternatives! * Cons: - * Its use is `discouraged `_ --- it seems to have some issues, you still need to deal with positional arguments by other means. + * The legacy version cannot handle whitespaces and metacharacters at all. It's also non-standard, so there's no guarantee of it existing. * ``getopts``: ``bash`` builtin for parsing command-line. * Pros: - * Being included with ``bash``, it behaves the same on all platforms. + * Being included with POSIX ``sh``, it behaves the same on all platforms. * Cons: