mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 09:12:11 +08:00
fix minor bug introduced by previous refactoring
This commit is contained in:
parent
00ed221b5a
commit
2079b4292e
@ -264,9 +264,9 @@ int builtin_functions(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
int retval = parse_functions_opts(&opts, &optind, argc, argv, parser, streams);
|
||||
if (retval != STATUS_CMD_OK) return retval;
|
||||
|
||||
if (opts.print_help || !argv[optind]) {
|
||||
if (opts.print_help) {
|
||||
builtin_print_help(parser, streams, cmd, streams.out);
|
||||
return STATUS_INVALID_ARGS;
|
||||
return STATUS_CMD_OK;
|
||||
}
|
||||
|
||||
// Erase, desc, query, copy and list are mutually exclusive.
|
||||
|
Loading…
x
Reference in New Issue
Block a user