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

Defer evaluating required=True on labm8.app flags until main method execution #44

Open
ChrisCummins opened this issue Jun 13, 2019 · 0 comments
Assignees
Labels

Comments

@ChrisCummins
Copy link
Owner

Currently, flags declared as required are checked during initial module evaluation. This is extremely awkward for things like unit tests files, as importing the module causes the flag presence to be checked.

One possible solution would be to evaluate whether a required flag is set directly before app.Run evaluates a user method.

@ChrisCummins ChrisCummins self-assigned this Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant