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 REPL option parser handle "-" option properly #3384

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

ossy-szeged
Copy link
Contributor

REPL could read JS file from standard input when we passed "-" option,
but #1809 missed to add this function to the new option parser.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

@akosthekiss
Copy link
Member

For the records, this code has been reworked after #1809 in e6832f5 (cannot find the PR for that). The original CLI parser was prepared for "-", I'm not taking responsibility for this variant.

REPL could read JS file from standard input when we passed "-" option,
but after jerryscript-project#1896 "-" became invalid option mistakenly.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
@ossy-szeged
Copy link
Contributor Author

For the records, this code has been reworked after #1809 in e6832f5 (cannot find the PR for that). The original CLI parser was prepared for "-", I'm not taking responsibility for this variant.

I wasn't checked the hisotry thorough enough, but you're right, #1896 broke this functionality. I updated the commit log accordingly.

@rerobika rerobika merged commit 336fa45 into jerryscript-project:master Nov 29, 2019
@ossy-szeged ossy-szeged deleted the fix-cli branch December 3, 2019 16:26
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.

5 participants