fish-shell/src
Aaron Miller 15ed682bfa Fix options after --argument-names to function (#6188)
This stops reading argument names after another option appears. It does not break any previous uses and in fact fixes uses like

```fish
function foo --argument-names bar --description baz
```

* `function` command handles options after argument names (Fixes #6186)

* Removed unneccesary test
2019-10-10 18:09:26 +02:00
..
widecharwidth Update widechar_width 2019-05-14 09:49:51 +02:00
autoload.cpp Initialize a const variable 2019-08-16 17:50:41 -07:00
autoload.h Revert "Revert "Add a test for autoload_t"" 2019-06-07 12:12:43 -07:00
builtin_argparse.cpp argparse: Fix validation for short-only-flags 2019-05-06 17:24:42 +02:00
builtin_argparse.h
builtin_bg.cpp Migrate some job flags into const properties struct 2019-06-23 12:42:44 -07:00
builtin_bg.h
builtin_bind.cpp Allow binding nul (zero byte) 2019-09-14 16:37:57 -07:00
builtin_bind.h Allow binding nul (zero byte) 2019-09-14 16:37:57 -07:00
builtin_block.cpp Event blocks just block all events 2019-02-23 13:02:07 -08:00
builtin_block.h
builtin_builtin.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_builtin.h
builtin_cd.cpp Eliminate shell_is_interactive 2019-06-29 11:28:26 -07:00
builtin_cd.h
builtin_command.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_command.h
builtin_commandline.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_commandline.h Reformat all files 2019-05-05 12:09:25 +02:00
builtin_complete.cpp Raise the recursion limit of complete 2019-10-03 21:25:19 +02:00
builtin_complete.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_contains.cpp This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_contains.h
builtin_disown.cpp Eliminate the global jobs() function 2019-05-05 11:33:08 -07:00
builtin_disown.h
builtin_echo.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_echo.h
builtin_emit.cpp Make events per-parser 2019-06-03 02:48:35 -07:00
builtin_emit.h
builtin_eval.cpp Remove some unused variables 2019-05-12 18:23:00 -07:00
builtin_eval.h Re-implement eval as a regular builtin 2019-04-12 07:04:15 -05:00
builtin_exit.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_exit.h
builtin_fg.cpp Migrate some job flags into const properties struct 2019-06-23 12:42:44 -07:00
builtin_fg.h
builtin_function.cpp Fix options after --argument-names to function (#6188) 2019-10-10 18:09:26 +02:00
builtin_function.h
builtin_functions.cpp builtin functions: colorize output if interactive 2019-09-25 04:18:06 -07:00
builtin_functions.h
builtin_history.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_history.h
builtin_jobs.cpp jobs: return success when a job is found via --last 2019-09-14 13:01:36 -05:00
builtin_jobs.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_math.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_math.h
builtin_printf.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_printf.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_pwd.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_pwd.h
builtin_random.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_random.h
builtin_read.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_read.h
builtin_realpath.cpp Reformat all files 2019-05-05 12:09:25 +02:00
builtin_realpath.h
builtin_return.cpp builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
builtin_return.h
builtin_set_color.cpp builtin_set_color.cpp: remove unnecessary .c_str() 2019-09-18 00:09:23 -07:00
builtin_set_color.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_set.cpp Ellipsis OCD 2019-09-19 11:48:37 -07:00
builtin_set.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_source.cpp Thread a parser into reader 2019-05-26 18:51:47 -07:00
builtin_source.h
builtin_status.cpp Make is_event and other globals part of parser_t libdata 2019-05-18 19:03:45 -07:00
builtin_status.h
builtin_string.cpp use std::tolower 2019-09-22 15:47:22 -07:00
builtin_string.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_test.cpp test: Fix return type 2019-05-29 20:50:35 +02:00
builtin_test.h
builtin_ulimit.cpp Stop printing help summary on error 2019-03-26 19:24:48 +01:00
builtin_ulimit.h This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
builtin_wait.cpp Minor cleanup of how jobs store their command string 2019-09-09 09:07:25 -07:00
builtin_wait.h
builtin.cpp Eliminate shell_is_interactive 2019-06-29 11:28:26 -07:00
builtin.h builtins: Use standard builtin.h error macros more 2019-09-17 22:04:33 -07:00
color.cpp Reformat all files 2019-05-05 12:09:25 +02:00
color.h Make sure rgb_color_t doesn't grow 2019-09-24 23:34:10 -07:00
common.cpp Revert "Escape separators (colon and equals) to improve completion" 2019-09-19 14:38:16 +08:00
common.h Revert "Escape separators (colon and equals) to improve completion" 2019-09-19 14:38:16 +08:00
complete.cpp Do not try the same (command, wraps) pair more than once when completing 2019-09-21 14:09:38 -07:00
complete.h complete: Add "--force-files" 2019-05-30 19:13:42 +02:00
enum_set.h Clean up enum_set.h header 2019-04-26 16:08:19 -07:00
env_dispatch.cpp Remove unused macros 2019-09-18 01:31:03 -07:00
env_dispatch.h Move locale and curses init from env to env_dispatch 2019-04-08 16:22:04 -07:00
env_universal_common.cpp Correctly export empty universal variables 2019-07-21 12:45:29 -07:00
env_universal_common.h Use a generation count for uvars exports 2019-06-09 13:48:07 -07:00
env.cpp Export all local exported variables in a new scope 2019-10-06 12:10:21 -07:00
env.h Provide an optimized override of get_pwd_slash() 2019-06-10 10:26:33 -07:00
event.cpp Eliminate shell_is_interactive 2019-06-29 11:28:26 -07:00
event.h Make events per-parser 2019-06-03 02:48:35 -07:00
exec.cpp Remove unused macros 2019-09-18 01:31:03 -07:00
exec.h Migrate the global exec_count into the parser 2019-05-04 20:58:35 -07:00
expand.cpp Unexpand abbreviations' variable names before completing them 2019-10-06 14:42:42 +02:00
expand.h Unexpand abbreviations' variable names before completing them 2019-10-06 14:42:42 +02:00
fallback.cpp Drop wcwidth ASCII check 2019-05-14 09:49:51 +02:00
fallback.h Try fixing __has_attribute errors on Travis macOS 2019-09-05 23:11:59 -05:00
fish_indent.cpp Colorize complete output 2019-09-19 04:27:33 -07:00
fish_key_reader.cpp Allow binding nul (zero byte) 2019-09-14 16:37:57 -07:00
fish_test_helper.cpp Add some new tricks to fish_test_helper 2019-07-27 11:00:07 -07:00
fish_tests.cpp Add a test for #6130 2019-09-22 14:06:38 -07:00
fish_version.cpp Reformat all files 2019-05-05 12:09:25 +02:00
fish_version.h
fish.cpp Don't generate exit events for jobs created from within event handlers 2019-06-26 17:30:51 -07:00
flog.cpp FLOG narrow-string output to use fwprintf 2019-05-31 09:31:42 -07:00
flog.h Migrate history profiling to flog 2019-08-18 11:14:45 -07:00
function.cpp Only use the global fish_complete_path and fish_function_path 2019-07-12 12:40:12 -07:00
function.h Remove the process from function_block_t 2019-05-18 21:09:04 -07:00
future_feature_flags.cpp string-replace-fewer-backslashes -> regex-easyesc 2019-08-13 22:32:04 -07:00
future_feature_flags.h Reformat all files 2019-05-05 12:09:25 +02:00
global_safety.h Make the input_common lookahead main-thread only 2019-05-04 20:58:36 -07:00
highlight.cpp Colorize complete output 2019-09-19 04:27:33 -07:00
highlight.h Colorize complete output 2019-09-19 04:27:33 -07:00
history_file.cpp Equip history_item_t with a default constructor 2019-08-17 20:01:44 -07:00
history_file.h Make escape_yaml_fish_2_0 and unescape_yaml_fish_2_0 static 2019-08-12 09:22:21 -07:00
history.cpp use std::tolower 2019-09-22 15:47:22 -07:00
history.h Use move semantics in trim and history_item_t 2019-08-25 13:37:06 -07:00
input_common.cpp Revert "Revert "Don't service ioport completions if data is available on stdin"" 2019-06-23 16:45:06 -07:00
input_common.h Add prefix history search 2019-10-05 11:27:32 -07:00
input.cpp Add prefix history search 2019-10-05 11:27:32 -07:00
input.h Allow binding nul (zero byte) 2019-09-14 16:37:57 -07:00
intern.cpp This commit changes wchar.h includes to cwchar, and uses std:: 2019-03-12 15:09:36 -07:00
intern.h
io.cpp Correct handling of explicitly separated output when all elements are empty 2019-07-21 14:00:27 -07:00
io.h Correct handling of explicitly separated output when all elements are empty 2019-07-21 14:00:27 -07:00
iothread.cpp Improve the iothread port structure 2019-06-03 16:42:51 -07:00
iothread.h Make thread_id a visible thing 2019-05-29 12:34:11 -07:00
kill.cpp Minor cleanup of kill ring 2019-03-23 23:31:24 -07:00
kill.h Minor cleanup of kill ring 2019-03-23 23:31:24 -07:00
lru.h Titlecase LRU template parameters 2019-04-27 12:07:16 -07:00
maybe.h Reformat all files 2019-05-05 12:09:25 +02:00
output.cpp Optimize parse_color 2019-09-21 19:36:56 -07:00
output.h Switches over to cstring from string.h. 2019-03-12 15:09:36 -07:00
pager.cpp Reformat all files 2019-05-05 12:09:25 +02:00
pager.h Move selection_direction_t to pager.h and make it a class enum 2019-04-28 14:06:03 -07:00
parse_constants.h Remove __packed 2019-08-10 16:04:05 -07:00
parse_execution.cpp Fix caret position of invalid expansion in command position 2019-10-06 13:43:05 -07:00
parse_execution.h Remove all block_t subclasses 2019-05-19 14:44:40 -07:00
parse_grammar_elements.inc
parse_grammar.h Reformat all files 2019-05-05 12:09:25 +02:00
parse_productions.cpp Disallow parsing 'and' and 'or' as commands 2019-09-08 11:09:32 -07:00
parse_productions.h
parse_tree.cpp Disallow parsing 'and' and 'or' as commands 2019-09-08 11:09:32 -07:00
parse_tree.h Reformat all files 2019-05-05 12:09:25 +02:00
parse_util.cpp Ellipsis OCD 2019-09-19 11:48:37 -07:00
parse_util.h Migrate parse_util_detect_errors to a free function 2019-08-04 14:49:56 -07:00
parser_keywords.cpp Reformat all files 2019-05-05 12:09:25 +02:00
parser_keywords.h
parser.cpp Migrate parse_util_detect_errors to a free function 2019-08-04 14:49:56 -07:00
parser.h Migrate parse_util_detect_errors to a free function 2019-08-04 14:49:56 -07:00
path.cpp clang-format all files 2019-06-03 20:30:48 -07:00
path.h Simplify reporting of invalid config paths 2019-05-01 17:51:51 -07:00
postfork.cpp child_setup_process to accept new termowner directly 2019-07-03 18:06:35 -07:00
postfork.h child_setup_process to accept new termowner directly 2019-07-03 18:06:35 -07:00
print_help.cpp Switches over to cstring from string.h. 2019-03-12 15:09:36 -07:00
print_help.h
proc.cpp Restore terminal modes after sending SIGCONT 2019-09-01 17:24:23 -07:00
proc.h Minor cleanup of how jobs store their command string 2019-09-09 09:07:25 -07:00
reader.cpp Emit omitted-newline string before fish_prompt event 2019-10-06 10:52:12 -07:00
reader.h Introduce reader_test_should_cancel 2019-09-21 13:07:55 -07:00
redirection.cpp Remove unused macros 2019-09-18 01:31:03 -07:00
redirection.h Reformat all files 2019-05-05 12:09:25 +02:00
sanity.cpp More using FLOGF when formatting is needed 2019-05-30 11:54:09 +02:00
sanity.h Eliminate the global jobs() function 2019-05-05 11:33:08 -07:00
screen.cpp Clear line if new indentation greater than old. 2019-10-06 10:34:55 -07:00
screen.h Make sure initial indentation is done using cursor move, not spaces. 2019-06-09 11:36:47 -07:00
signal.cpp Eliminate shell_is_interactive 2019-06-29 11:28:26 -07:00
signal.h Eliminate shell_is_interactive 2019-06-29 11:28:26 -07:00
tinyexpr.cpp Fix build on FreeBSD 12.0 with stock Clang 2019-06-10 16:51:42 -05:00
tinyexpr.h [tinyexpr] Port to C++ 2018-12-30 19:34:06 +01:00
tnode.cpp Reformat all files 2019-05-05 12:09:25 +02:00
tnode.h Reformat all files 2019-05-05 12:09:25 +02:00
tokenizer.cpp More using FLOGF when formatting is needed 2019-05-30 11:54:09 +02:00
tokenizer.h remove some wcstring -> wchar_t* -> wcstring conversions 2019-03-14 15:21:08 -07:00
topic_monitor.cpp Correct a race in topic monitor 2019-05-31 09:31:42 -07:00
topic_monitor.h Correct a race in topic monitor 2019-05-31 09:31:42 -07:00
utf8.cpp Reformat all files 2019-05-05 12:09:25 +02:00
utf8.h
util.cpp wcsfilecmp: be clearer about sorting "-" after letters 2019-05-28 22:05:23 +08:00
util.h Remove mini() and maxi() 2019-03-12 23:25:15 -07:00
wcstringutil.cpp use std::tolower 2019-09-22 15:47:22 -07:00
wcstringutil.h use std::tolower 2019-09-22 15:47:22 -07:00
wgetopt.cpp Reformat all files 2019-05-05 12:09:25 +02:00
wgetopt.h rearrange structure fields 2019-04-04 13:47:10 -07:00
wildcard.cpp Introduce reader_test_should_cancel 2019-09-21 13:07:55 -07:00
wildcard.h Remove EXPAND prefix from expand_flags and lowercase them 2019-04-25 11:34:49 -07:00
wutil.cpp Remove wchdir() 2019-06-10 09:37:08 -07:00
wutil.h Remove wchdir() 2019-06-10 09:37:08 -07:00