Complete: Fix long-form of "-r" in complete output

This was never `--requires-param`, AFAICT.
This commit is contained in:
Fabian Homborg 2021-10-20 21:05:17 +02:00
parent 6e491ad457
commit 144778dc28
2 changed files with 2 additions and 2 deletions

View file

@ -1804,7 +1804,7 @@ static wcstring completion2string(const complete_entry_opt_t &o, const wcstring
} else if (o.result_mode.force_files) {
append_switch(out, L"force-files");
} else if (o.result_mode.requires_param) {
append_switch(out, L"requires-param");
append_switch(out, L"require-parameter");
}
if (is_path)

View file

@ -56,7 +56,7 @@ complete
# CHECK: complete --force-files t -l fileoption
# CHECK: complete --no-files t -a '(t)'
# CHECK: complete -p '/complete test/beta1' -s Z -d 'desc, desc'
# CHECK: complete --requires-param 'complete test beta2' -d desc\ \'\ desc2\ \[ -a 'foo bar'
# CHECK: complete --require-parameter 'complete test beta2' -d desc\ \'\ desc2\ \[ -a 'foo bar'
# CHECK: complete --exclusive complete_test_beta2 -o test -n false
# CHECK: complete {{.*}}
# CHECK: complete {{.*}}