fish-shell/doc_src
Fabian Homborg 0781473564 argparse: Jump to the next option after an unknown one
Previously, when we got an unknown option with --ignore-unknown, we
would increment woptind but still try to read the same contents.

This means in e.g.

```
argparse -i h -- -ooo -h
```

The `-h` would also be skipped as an option, because after the first
`-o` getopt reads the other two `-o` and skips that many options.

This could be handled more extensively in wgetopt, but the simpler fix
is to just skip to the next argv entry once we have an unknown option
- there's nothing more we can do with it anyway!

Additionally, document this and clearly explain that we currently
don't transform the option.

Fixes #8637
2022-01-15 12:17:43 +01:00
..
cmds argparse: Jump to the next option after an unknown one 2022-01-15 12:17:43 +01:00
python_docs_theme css: Use same font for headers 2022-01-13 19:25:44 +01:00
commands.rst Add documentation for prompt_hostname 2021-12-04 10:37:49 +01:00
completions.rst docs: Replace all internal links with :ref:s 2021-03-26 19:32:14 +01:00
conf.py docs: Set doc language 2022-01-14 18:54:01 +01:00
design.rst Make rationale spacing consistent 2020-10-12 20:25:35 +02:00
faq.rst docs: Go over the FAQ again 2021-10-29 17:14:53 +02:00
fish_for_bash_users.rst Add documentation for prompt_hostname 2021-12-04 10:37:49 +01:00
fish_indent_lexer.py pygments lexer: use the token type intended for CLI output 2021-12-12 12:00:23 -08:00
index.rst Revert "index.rst: don't mention current page under "Other help pages"" 2022-01-12 21:42:16 +01:00
interactive.rst Make fish_key_reader's output simpler (#8467) 2021-11-22 17:22:22 +01:00
language.rst docs: Expand path variable section 2021-12-01 19:03:40 +01:00
license.rst Bump copyright year 2022-01-09 23:47:58 +08:00
relnotes.rst docs: call the CHANGELOG "release notes" 2021-02-25 22:46:24 +08:00
tutorial.rst Remove delete-or-exit function, which has a C++ implementation 2021-12-11 10:19:18 +01:00