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

pl.lapp doesn't correct with flags #241

Open
SergeyMalashenko opened this issue Feb 1, 2017 · 3 comments
Open

pl.lapp doesn't correct with flags #241

SergeyMalashenko opened this issue Feb 1, 2017 · 3 comments

Comments

@SergeyMalashenko
Copy link

This example doesn't work correctly
local args_ = lapp [[
--hello
]]

This example works correctly
local args_ = lapp [[
--hello hello
]]

Is it correct behavior?

@stevedonovan
Copy link
Contributor

I think it should work correctly, that is, the rest of the line should be ignored correctly. So I'll have a look at this.

@SergeyMalashenko
Copy link
Author

The first example: th example.lua --hell
The second example: th example.lua --hello

@stevedonovan
Copy link
Contributor

The 'little hack' is to check if the rest of the line has exactly one char, and append it to the long parm. Feels like a hack, because it could be a multibyte char. Otherwise, have to look very carefully at how SIP is working here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants