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

feat(cli): Support --files #241

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

frank-lenormand
Copy link

Hi!

This merge request implements a --files command-line argument that allows passing a list of policies to analyse.

The signature of the main() function was also modified to get argv as an argument, instead of assuming sys.argv.

Both changes are necessary to implement a pre-commit hook I’ve been using locally.

I may make the repository public if this patch is merged, for the sake of further contributing!

@CLAassistant
Copy link

CLAassistant commented Apr 12, 2024

CLA assistant check
All committers have signed the CLA.

"--files",
help="Provide a comma-separated list of policies",
type=str,
)

Choose a reason for hiding this comment

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

suggestion: Another option is to make --file dest variable a list so it can be used multiple times without changing the interface.

@frank-lenormand frank-lenormand force-pushed the feat-cli-files_argument branch from 6550960 to b57f2a1 Compare April 17, 2024 11:50
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.

3 participants