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

llm -- "--find me" doesn't work but llm prompt -- "--find me" does #245

Open
5shekel opened this issue Sep 5, 2023 · 3 comments
Open

llm -- "--find me" doesn't work but llm prompt -- "--find me" does #245

5shekel opened this issue Sep 5, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@5shekel
Copy link

5shekel commented Sep 5, 2023

(base) PS C:\Users\user> llm "--find me"
Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: No such option: --find me
(base) PS C:\Users\user> llm '--find me'
Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: No such option: --find me
(base) PS C:\Users\user>
@5shekel
Copy link
Author

5shekel commented Sep 5, 2023

also on bash/linux

$ llm "--find me"
Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: No such option: --find me
$ llm '--find me'
Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: No such option: --find me

@simonw
Copy link
Owner

simonw commented Sep 6, 2023

Try this instead:

llm prompt -- "--find me"

I think the thing that's getting confused here is the bit where llm 'string' is passed over to llm prompt 'string' as a default action.

@simonw simonw changed the title escaping double dashs llm -- "--find me" doesn't work but llm prompt -- "--find me" does Sep 6, 2023
@simonw simonw added the bug Something isn't working label Sep 6, 2023
@simonw
Copy link
Owner

simonw commented Sep 6, 2023

@simonw simonw modified the milestone: 0.11 Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants