Skip to content

Commit

Permalink
(#2049) Add --version to top level tab expansion
Browse files Browse the repository at this point in the history
Running choco --version reports the currently installed Chocolatey
version number, but this option wasn't included in the tab expansion
options for the top level choco command, this change adds this in.
  • Loading branch information
gep13 committed May 13, 2021
1 parent a92a032 commit 0544f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function script:chocoCmdOperations($commands, $command, $filter, $currentArgumen
where { $_ -like "$filter*" }
}

$script:someCommands = @('-?','search','list','info','install','outdated','upgrade','uninstall','new','download','optimize','pack','push','sync','-h','--help','pin','source','config','feature','apikey','export','help')
$script:someCommands = @('-?','search','list','info','install','outdated','upgrade','uninstall','new','download','optimize','pack','push','sync','-h','--help','pin','source','config','feature','apikey','export','help','--version')

# ensure these all have a space to start, or they will cause issues
$allcommands = " --debug --verbose --trace --noop --help --accept-license --confirm --limit-output --no-progress --log-file='' --execution-timeout='' --cache-location='' --proxy='' --proxy-user='' --proxy-password='' --proxy-bypass-list='' --proxy-bypass-on-local --force --no-color"
Expand Down

0 comments on commit 0544f28

Please sign in to comment.