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

🐛 pre-process known provider flags #1868

Merged
merged 1 commit into from
Sep 24, 2023
Merged

🐛 pre-process known provider flags #1868

merged 1 commit into from
Sep 24, 2023

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Sep 23, 2023

We were getting errors about pre-processing failing when used in conjunction with full-fledged CLI commands.

Example: If you didn't have cnquery installed and copy-pasted:

cnquery run github org mondoohq --token github_.. -c ".."

... you'd get an error about not being able to parse --token.

This is a bit inefficient, but it at least results in a clean run for now.

We were getting errors about pre-processing failing when used in conjunction with full-fledged CLI commands.

Example: If you didn't have `cnquery` installed and copy-pasted:

```bash
cnquery run github org mondoohq --token github_.. -c ".."
```

... you'd get an error about not being able to parse `--token`.

This is a bit inefficient, but it at least results in a clean run for now.

Signed-off-by: Dominik Richter <[email protected]>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you, this makes it more clean and removes the warning for the user.

@chris-rock chris-rock merged commit c91715a into main Sep 24, 2023
@chris-rock chris-rock deleted the dom/cli-args branch September 24, 2023 09:00
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants