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

Make parsed arguments accessible to bridges #164

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Make parsed arguments accessible to bridges #164

merged 2 commits into from
Jun 25, 2020

Conversation

digitalrayne
Copy link
Contributor

This PR switches to storing the parsed arguments as an instance variable, so that once parsed, bridges are able to use getArgs() to get access to the parsed arguments for the bridge.

One example use case is retrieving the location of the configuration file, which did not seem possible otherwise, for passing to other libraries which need to read and update the JSON for themselves (example, matrix-puppet-bridge).

Signed-off-by: James Hebden james@ec0.io

…tArgs()

Signed-off-by: James Hebden <james@ec0.io>
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

Looks sensible to me 👍

@Half-Shot Half-Shot merged commit 2765e3c into matrix-org:develop Jun 25, 2020
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.

None yet

2 participants