- Notifications
You must be signed in to change notification settings - Fork 471
Rewrite rescript format #5181
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
Rewrite rescript format #5181
Conversation
- Clearer usage for end users - No longer accept `-stdin foo.res` (should now be `-stdin .res`) - Split up code - Clarify error handling Fixes rescript-lang#5131
rescript format: write subprocess stderr output to stderr instead of stdoutrescript format | I got a bit carried away fixing #5131. Let me know what you think. I would also like to change the style of the command line usage output of other parts of the |
| The command line parsing is done using Some subcommands are implemented in native, some are implemented in JS, they are consistent because the command line parsing library is the same. In general, it would be nice to do the code format in a separate pull request so it is easier to review |
| I'll revert to the previous command line argument parsing. Note that the diff is so huge because almost all the code has been restructured/rewritten; it is not just reformatted. But if you want I can try to split it up, this will be difficult though. |
| Note that due to my usage of |
| I've reverted to using |
| Hi , my time budget spent on this project is quite limited, it would be nice if you can spend some time to make it easy to review, e.g, bug fixes first and refactoring later |
| Sure, I'll give it a shot soon. |
| @bobzhang I've created #5194 with all bugfixes as individual commits. Compared to that PR, this PR adds the following changes:
I'll leave this PR open and update it after #5194 is merged. |
| This most certainly got stale. Feel free to reopen if still relevant. |
stderroutput tostderrinstead ofstdout-stdinargumentFixes #5131