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

Add ability to pass scripts via a command line option #152

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

paracycle
Copy link
Contributor

I've been finding it too cumbersome to keep passing one-off scripts via stdin. Seen as almost all similar Ruby tooling (ruby, ruby-parse, sorbet are a few examples) support passing inline scripts via an -e option, I figured that would be a good addition to this tool as well.

I implemented the option additively, so that passing in multiple -e options will pass in multiple scripts. Also, in contrast to how Ruby processes -e, I've chosen to process all files and scripts passed via the command-line.

@kddnewton
Copy link
Member

Nice!

@kddnewton kddnewton merged commit 1099498 into ruby-syntax-tree:main Aug 26, 2022
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.

2 participants