Skip to content

Llama--Enable-pipe-friendly-help-output #2338

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

Merged

Conversation

maddes8cht
Copy link
Contributor

@maddes8cht maddes8cht commented Jul 23, 2023

I have always been irritated by the fact that the help text cannot be piped. Neither a falcon-main --help |less (the help is meanwhile 79 lines long) will work nor a falcon-main --help |grep -A3 penal (which should e.g. provide a compilation in a few lines with everything that has to do with penalties commands).
That is because the help output is written to stderr. But a help text output with --help is not an error message, but the desired text output of the help command.
This pr changes the output going to stdout, making possible to pipe the text
and allow processing with grep, less, etc.

@ggerganov ggerganov merged commit 1d0824b into ggml-org:master Jul 23, 2023
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.

2 participants