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: skipping files based on regex and fixing parsing of args #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

racinmat
Copy link
Contributor

@racinmat racinmat commented Oct 12, 2024

This PR fixes #81 and adds a new flag which lets you skip some files based on regex. Sometimes people keep testing files in the game and I don't want to delete them when running the code, I want to skip them by passing some argument to the program
There are multiple ways to do it, but I feel like using regex is the simplest, because you can skip arbitrary amount of files just by passing single regex.

And regarding the boolean flags, the only way how to pass them false value is using =, which is non-intuitive, so I added example to the readme. See the docs: https://pkg.go.dev/flag which say -flag x // non-boolean flags only

I have tested it locally and it works well.

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.

Arguments are not parsed if path is specified
1 participant