-
Notifications
You must be signed in to change notification settings - Fork 20
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
-i for in-place edit #171
Comments
We'll be looking at this issue in this fork: https://github.com/lars-olsson/hawk/tree/master |
Any progress? Can I help with anything? |
I'm currently trying to understand the api for OptionParser. Is there a way for the parser to not consume the arguments (so that the same argument could be used to create both the input and output spec.) |
A snippet of what I'm trying to do:
|
It would be possible to write a variants of
The |
Why |
Is there a reason why you are using the empty string as a distinguished value instead of using a |
This was just helping me understand how to explicitly parse arguments.
Adding consumeNullable changes the type from Maybe String to String
Yeah this approach seems to work well for me, thanks! I'll post an update later. |
No, that feature is not yet implemented, see #13 and #50. Currently you can only specify zero files, in which case you'll get stdin, or one file, in which case you'd get that file. I wonder if using |
Oh, and even if if was possible to use a list of files, I still don't think adding a |
Ah, you're right! I don't remember why I designed it that way, it looks like a mistake now. |
No description provided.
The text was updated successfully, but these errors were encountered: