-
Notifications
You must be signed in to change notification settings - Fork 2
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
Piping (Command line options) #39
Comments
Hm, a couple of points:
Apart from this: I find the multi-nesting if-else if-else branches really clumsy and un-elegant. Do you know a fancy pattern for this? The only thing I can think of is matching on tuples: match (flag_a, flag_b, flag c) {
(true, false, false) => foo(),
(false, true, false) => bar(),
_ => (), // invalid combination
} |
Thinking about it: Why not |
|
Ok, I'll take a look at it today! |
Currently we have this:
indentex [DIRECTORY]
indentex [FILE]
What I want to add:
indentex [FILE] --stdout
(write to stdout)indentex -o [OUTFILE]
(read from stdin)indentex --stdout
(read from stdin and write to stdout)indentex [FILE] -o [OUTFILE]
(no piping at all; just here for consistency)It's a bit weird to have the
--stdout
in the first place but I don't see any other way to stay compatible.The text was updated successfully, but these errors were encountered: