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

[BUG]: ghcs --target doesn't work the same as gh copilot suggest --target #61

Open
williammartin opened this issue Mar 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@williammartin
Copy link

What happened?

Compare the following two snippets providing the --target flag to the suggest command and alias:

➜ gh copilot suggest --target git

Welcome to GitHub Copilot in the CLI!
version 1.0.1 (2024-03-22)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

? What would you like the git command to do?
>
➜  ~ ghcs --target git

✗ Error: invalid argument "" for "-t, --target" flag: invalid target choice:  is not one of shell, gh, git

The zsh alias (haven't checked the others) expects --target=git with the equals sign as a separator, but this acts differently from the go binary command, which is surprising. The short flag works as expected.

Versions

➜  ~ gh copilot --version
version 1.0.1 (2024-03-22)
@williammartin williammartin added bug Something isn't working needs-triage needs to be reviewed labels Mar 26, 2024
@andyfeller andyfeller removed the needs-triage needs to be reviewed label Mar 29, 2024
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