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

docs: improve examples on several command line arguments. #310

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

milanglacier
Copy link

No description provided.

- `--format-as`: Specify the format for the output (used with `--format`).
- `-P`, `--prompt`: Prompt should include stdin and args.
- `-p`, `--prompt-args`: Prompt should only include args.
- `--format-as`: Specify the format for the output (used with `--format`, e.g. `mods -f --format-as json 'your prompt here'`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the other flags don't have example usages in their help, i think this should be somewhere else

Suggested change
- `--format-as`: Specify the format for the output (used with `--format`, e.g. `mods -f --format-as json 'your prompt here'`).
- `--format-as`: Specify the format for the output (used with `--format`).

- `-P`, `--prompt`: Prompt should include stdin and args.
- `-p`, `--prompt-args`: Prompt should only include args.
- `--format-as`: Specify the format for the output (used with `--format`, e.g. `mods -f --format-as json 'your prompt here'`).
- `-P=n`, `--prompt=n`: show the output with prompts from stdin, and only include the first `n` lines of prompt.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `-P=n`, `--prompt=n`: show the output with prompts from stdin, and only include the first `n` lines of prompt.
- `-P`, `--prompt`: show the output with the prompt from STDIN, and only include the first `n` lines of the prompt.

@@ -40,7 +40,7 @@ var help = map[string]string{
"role": "System role to use.",
"roles": "List of predefined system messages that can be used as roles.",
"list-roles": "List the roles defined in your configuration file",
"prompt": "Include the prompt from the arguments and stdin, truncate stdin to specified number of lines.",
"prompt": "Include the top n lines of prompt from the stdin in the response, where n is the specified number.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"prompt": "Include the top n lines of prompt from the stdin in the response, where n is the specified number.",
"prompt": "Include the first n lines of prompt from the STDIN in the response",

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