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

Feature Request: Add -f flag to codeql database create #44

Open
mario-campos opened this issue Sep 11, 2020 · 0 comments
Open

Feature Request: Add -f flag to codeql database create #44

mario-campos opened this issue Sep 11, 2020 · 0 comments

Comments

@mario-campos
Copy link

@mario-campos mario-campos commented Sep 11, 2020

Hello.

Have you ever attempted to codeql database create foo but maybe you forgot or missed a flag? So you modify the command and try to run it again, but, this time, it spits out a lovely:

$ codeql database create nuxtdb -l javascript -s nuxt.js
Initializing database at /Users/mario-campos/nuxtdb.
A fatal error occurred: Refusing to create database: '/Users/mario-campos/nuxtdb' exists and is not an empty directory.

It would be really nice and convenient to add a -f, --force flag to be able to override the warning:

$ codeql database create nuxtdb -f -l javascript -s nuxt.js
Initializing database at /Users/mario-campos/nuxtdb.
WARNING: '/Users/mario-campos/nuxtdb' exists and is not an empty directory; overwriting directory...

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.