Skip to content

--help , pipes and inconsistent help text #71

@maddes8cht

Description

@maddes8cht

I have always been irritated (also in Llama.cpp) by the fact that the help text cannot be piped. Neither a falcon-main --help |less (the help is meanwhile 85 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.

These changes can be done quickly, just a lot of lines - but I also noticed a lot of inconsistencies in the help text. I would like to change them together with the correction of the output code.

The help text has a basic structure:
Entries start with the argument or option preceded by - or --, followed by an argument in capital letters if one is provided, e.g. in the line

-p PROMPT, --prompt PROMPT

The argument has now been omitted in many new entries. I will add these again.
But some lines become very long because of this, take for example:

-a,--alias,--finetune Set model name alias and optionally force fine-tune type (or disable it)

should actually be

-a ALIAS, --alias ALIAS, --finetune ALIAS Set model name alias and optionally force fine-tune type (or disable it)

It would be consistent to write it this way (and I'm all for writing the help text consequently consistent), but it doesn't make it any clearer.
So my suggestion is to change the notation and basically write the argument only once after the comma-separated list of option notations. Then it would be

-s, --seed SEED               RNG seed (default: -1, use random seed for < 0)
-p, --prompt PROMPT           prompt to start generation with (default: empty)
-a,--alias,--finetune ALIAS   Set model name alias and optionally force fine-tune type (or disable it)

As a benefit there would be some more lines where the description still fits in the same line as the parameter list.
If I get approval for this, I would send the mentioned changes all together into a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions