fish-shell/doc_src/cmds
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
..
_.rst slog through documentation 2021-12-09 03:34:28 -08:00
abbr.rst slog through documentation 2021-12-09 03:34:28 -08:00
alias.rst slog through documentation 2021-12-09 03:34:28 -08:00
and.rst Harmonize some idiosyncrancies introduced 2021-12-17 15:20:46 -08:00
argparse.rst argparse: Jump to the next option after an unknown one 2022-01-15 12:17:43 +01:00
begin.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
bg.rst slog through documentation 2021-12-09 03:34:28 -08:00
bind.rst Add documentation for nextd-or-forward-word and prevd-or-backward-word readline functions 2021-12-11 10:19:18 +01:00
block.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
break.rst Harmonize some idiosyncrancies introduced 2021-12-17 15:20:46 -08:00
breakpoint.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
builtin.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
case.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
cd.rst Harmonize some idiosyncrancies introduced 2021-12-17 15:20:46 -08:00
cdh.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
command.rst Harmonize some idiosyncrancies introduced 2021-12-17 15:20:46 -08:00
commandline.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
complete.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
contains.rst fixup 2021-12-17 15:23:02 -08:00
continue.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
count.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
dirh.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
dirs.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
disown.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
echo.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
else.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
emit.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
end.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
eval.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
exec.rst Commit doc_src progress. 2021-12-17 13:59:39 -08:00
exit.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
false.rst Long march towards more structured text 2021-11-12 04:22:35 -08:00
fg.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_add_path.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_breakpoint_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_command_not_found.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_config.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_git_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_greeting.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_hg_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_indent.rst Docs: Switch back to vanilla :ref: for commands that should be linked 2021-11-12 18:02:56 +01:00
fish_is_root_user.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_key_reader.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_mode_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_opt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_right_prompt.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
fish_status_to_signal.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_svn_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_title.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_update_completions.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
fish_vcs_prompt.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
for.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
funced.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
funcsave.rst funcsave: add documentation for feature added in 3a402b19b 2022-01-03 23:03:38 +08:00
function.rst doc_src: Continue the slog through the letter F. 2021-12-17 15:16:47 -08:00
functions.rst Clarify functions -Dv's output 2022-01-08 13:46:00 +01:00
help.rst help: adjust synopsis. history manpage: indent long synopsis lines 2021-12-17 15:38:49 -08:00
history.rst History: adjust description entries 2021-12-17 15:44:05 -08:00
if.rst Update synopsis of a few stragglers. 2021-12-24 16:15:40 -08:00
isatty.rst Update synopsis of a few stragglers. 2021-12-24 16:15:40 -08:00
jobs.rst Update synopsis of a few stragglers. 2021-12-24 16:15:40 -08:00
math.rst math.rst: fix typo 2022-01-02 10:14:46 +01:00
nextd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
not.rst More synopsis work. 2021-12-21 17:24:47 -08:00
open.rst More synopsis work. 2021-12-21 17:24:47 -08:00
or.rst More synopsis work. 2021-12-21 17:24:47 -08:00
popd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
prevd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
printf.rst More synopsis work. 2021-12-21 17:24:47 -08:00
prompt_hostname.rst More synopsis work. 2021-12-21 17:24:47 -08:00
prompt_login.rst More synopsis work. 2021-12-21 17:24:47 -08:00
prompt_pwd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
psub.rst More synopsis work. 2021-12-21 17:24:47 -08:00
pushd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
pwd.rst More synopsis work. 2021-12-21 17:24:47 -08:00
random.rst More synopsis work. 2021-12-21 17:24:47 -08:00
read.rst More synopsis work. 2021-12-21 17:24:47 -08:00
realpath.rst docs: Readd note about the command to realpath 2021-11-12 18:28:35 +01:00
return.rst Docs: Switch back to vanilla :ref: for commands that should be linked 2021-11-12 18:02:56 +01:00
set.rst More synopsis work. 2021-12-21 17:24:47 -08:00
set_color.rst Update synopsis of a few stragglers. 2021-12-24 16:15:40 -08:00
source.rst More synopsis work. 2021-12-21 17:24:47 -08:00
status.rst status.rst: fixup 2021-12-21 18:52:45 -08:00
string-collect.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-escape.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-join.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-join0.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
string-length.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-lower.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-match.rst string-match.rst: fix wrong RST directive 2022-01-02 12:23:39 +01:00
string-pad.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-repeat.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-replace.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-split.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-split0.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
string-sub.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-trim.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string-unescape.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
string-upper.rst More synopsis work. 2021-12-21 17:24:47 -08:00
string.rst More synopsis work. 2021-12-21 17:24:47 -08:00
suspend.rst More synopsis work. 2021-12-21 17:24:47 -08:00
switch.rst More synopsis work. 2021-12-21 17:24:47 -08:00
test.rst More synopsis work. 2021-12-21 17:24:47 -08:00
time.rst More synopsis work. 2021-12-21 17:24:47 -08:00
trap.rst More synopsis work. 2021-12-21 17:24:47 -08:00
true.rst More synopsis work. 2021-12-21 17:24:47 -08:00
type.rst More synopsis work. 2021-12-21 17:24:47 -08:00
ulimit.rst ulimit.rst: remove spurious backtick 2022-01-02 12:23:39 +01:00
umask.rst More synopsis work. 2021-12-21 17:24:47 -08:00
vared.rst More synopsis work. 2021-12-21 17:24:47 -08:00
wait.rst More synopsis work. 2021-12-21 17:24:47 -08:00
while.rst More synopsis work. 2021-12-21 17:24:47 -08:00