Add help <command> as alias for <command> --help#25001
Closed
Sophist-UK wants to merge 2 commits into
Closed
Conversation
Allow user to use e.g. `llama help serve" as an alias for `llama serve --help`. 1. Adds a helper to check if help target is a valid command 2. Calls recursively with the alias.
Author
|
This is a simple change - I am not a C++ coder, do not have a C++ development environment and have not checked this code is correct. I expect the CI to succeed once someone has enabled the workflows, and will fix it if it doesn't. |
Contributor
|
We can't accept code you haven't even run |
Author
|
If you had enabled the workflow, we could have confirmed that it ran. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Allow user to use e.g.
llama help serve" as an alias forllama serve --help`.Requirements