Open rufuspollock opened 11 years ago
Start on this in PR #28
@davidmiller interested in your thoughts on following unix grep (vs e.g. csvgrep). For example, -i for invert versus -v ...
+10 for following unix grep flags.
Is this the time to introduce a javascript optparse library? Parsing options for the operations so far has been fine without one, but grep is a bit trickier, and I guess npm is bound to have a good option parser.
@andylolz I thought that may be a good idea :-) (plus will sync with #19 and #18)
node-optimist looks like a very popular choice.
A few more of these options are in now (see: updated docs page). The options are a mix of csvkit grep and unix grep.
Regex is hampered quite a bit by URL limitations e.g. neither forward slash nor backslash can be used outside of the query string (since forward slash means pipe).
This is pretty much done now…
I stripped out 'basic match' in favour of regex match. Maybe both options would be better (i.e. the csvkit way, rather than the unix way)?
Basic question: do we match unix grep as much as possible?
See also