Intent of completion, --get-yargs-completions, …) completes choices if previous option requires a choice and a partial choice has been entered|occurrence=1

All 2 exact tests in this concept. Every test is marked by where it enters the hierarchy.