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

clifun args and defaults are backwards #85

Open
tgbugs opened this issue Jul 6, 2020 · 1 comment
Open

clifun args and defaults are backwards #85

tgbugs opened this issue Jul 6, 2020 · 1 comment

Comments

@tgbugs
Copy link
Owner

tgbugs commented Jul 6, 2020

clifun.Options can be put to much wider use (e.g. when eventually moved to orthauth) by switching the order of args and defaults so that it can be imported from a module without being in main to supply args. That way any configuration of the docstring use auth and any other default options can be accessed without having to fiddle around with argv etc. This will be a fairly large change in the way init is handled.

@tgbugs
Copy link
Owner Author

tgbugs commented Jul 6, 2020

This allows the Options class to serve as the turing complete part of the configuration scheme which the conf files in orthauth explicitly do not allow, and would decouple it from docopt, even if not from the docopt output format (which is not an issue since it is a simple sane format).

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

No branches or pull requests

1 participant