From 1244a47d869fd63cde53f666eddfee9036ab5356 Mon Sep 17 00:00:00 2001 From: rohan436 Date: Wed, 11 Mar 2026 17:15:06 +0800 Subject: [PATCH] docs: fix separator spelling in argparse docs Closes #12533 --- doc_src/cmds/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/argparse.rst b/doc_src/cmds/argparse.rst index fb6766218..a1f5ad69a 100644 --- a/doc_src/cmds/argparse.rst +++ b/doc_src/cmds/argparse.rst @@ -46,7 +46,7 @@ The following ``argparse`` options are available. They must appear before all *O In contrast, if the known option comes first (and does not take any arguments), the known option will be recognised (e.g. ``argparse --move-unknown h -- -ho`` *will* set ``$_flag_h`` to ``-h``) **-i** or **--ignore-unknown** - Deprecated. This is like **--move-unknown**, except that unknown options and their arguments are kept in ``$argv`` and not moved to ``$argv_opts``. Unlike **--move-unknown**, this option makes it impossible to distinguish between an unknown option and non-option argument that starts with a ``-`` (since any ``--`` seperator in ``$argv`` will be removed). + Deprecated. This is like **--move-unknown**, except that unknown options and their arguments are kept in ``$argv`` and not moved to ``$argv_opts``. Unlike **--move-unknown**, this option makes it impossible to distinguish between an unknown option and non-option argument that starts with a ``-`` (since any ``--`` separator in ``$argv`` will be removed). **-S** or **--strict-longopts** This makes the parsing of long options more strict. In particular, *without* this flag, if ``long`` is a known long option flag, ``--long`` and ``--long=`` can be abbreviated as: