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

14 flags #18

Closed
wants to merge 8 commits into from
Closed

14 flags #18

wants to merge 8 commits into from

Conversation

minorOffense
Copy link

This adds the flag library to handle parsing the args. Gave it a quick test and it appears to work regardless of the = or no =

This is a fix for #14

It also works with the bin-dir branch too.

@minorOffense minorOffense marked this pull request as draft January 25, 2024 17:24
Can't pass arbitrary args, need to use os.args
Check for the = in the arg for the root dir
@minorOffense minorOffense marked this pull request as ready for review January 25, 2024 19:00
@minorOffense
Copy link
Author

Can't use the flag library. Doesn't allow for arbitrary args. But if we add the case for the --root= works fine. Without that case the arg is parsed all as one value instead of splitting on --root and the file path. So we have to take it and split on the = sign.

Also reworked the default cwd handling. Managed to shrink the code down a bit.

@minorOffense
Copy link
Author

I guess we don't need this anymore.

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.

1 participant