for nuget and choco list commands, the -pre flag should return the newest version, even if the latest is beta. When running nuget and choco against their public repos, they behave as expected, but when run against artifactory, they don't.
On an artifactory repo with these versions, I expect to get helloworld 0.1.0-beta-9; the actual was 0.0.8.
C:\> choco list helloworld -pre -all
PS C:\> choco list helloworld -pre
On a public chocolatey artifact, it works as expected:
C:\> choco list keepass-plugin-keeagent -pre -all
PS C:\> choco list keepass-plugin-keeagent -pre