Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a better error message for unlimited argument commands. #1515

Merged
merged 1 commit into from
Oct 18, 2024

Commits on Oct 18, 2024

  1. Add a better error message for unlimited argument commands.

    Before / after:
    
    ```console
    PS D:\vcpkg\test> ..\vcpkg.exe new --application
    PS D:\vcpkg\test> ..\vcpkg.exe add rapidjson
    error: the command 'add' requires between 2 and 18446744073709551615 arguments, inclusive, but 1 were provided
    [...]
    
    PS D:\vcpkg\test> D:\vcpkg-tool\out\build\Win-x64-Debug-WithArtifacts\vcpkg.exe add rapidjson
    error: the command 'add' requires at least 2 arguments, but 1 were provided
    ```
    BillyONeal committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    ba462db View commit details
    Browse the repository at this point in the history