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

CLI args use - instead of _, backwards compatible #1416

Merged
merged 1 commit into from
May 12, 2023

Conversation

JohannesGaessler
Copy link
Collaborator

@JohannesGaessler JohannesGaessler commented May 12, 2023

In #1375 someone suggested using --gpu-layers instead of --gpu_layers. I had simply picked an underscore because I looked at what a random other argument was using. On master CLI arguments use "-" and "_" in an inconsistent way. This PR changes all CLI arguments to use "-". When a CLI arg contains "_" it is automatically converted to "-" to preserve backwards compatibility.

examples/common.cpp Outdated Show resolved Hide resolved
@sw sw merged commit 773ee24 into ggerganov:master May 12, 2023
@SlyEcho
Copy link
Collaborator

SlyEcho commented May 12, 2023

Someone had to do it! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants