mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
Fixed failing test
This commit is contained in:
parent
bf98b1bded
commit
3c2cea9754
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ Register-ArgumentCompleter -Native -CommandName 'my_app' -ScriptBlock {
|
|||
$element = $commandElements[$i]
|
||||
if ($element -isnot [StringConstantExpressionAst] -or
|
||||
$element.StringConstantType -ne [StringConstantType]::BareWord -or
|
||||
$element.Value.StartsWith('-')) {
|
||||
$element.Value.StartsWith('-') -or
|
||||
$element.Value -eq $wordToComplete) {
|
||||
break
|
||||
}
|
||||
$element.Value
|
||||
|
|
Loading…
Reference in a new issue