trentm / go-ecslog

`ecslog` CLI to pretty-print and filter log files in ecs-logging format
Apache License 2.0
7 stars 2 forks source link

multiple `-i` and `-x` fields should accumulate #25

Open trentm opened 3 years ago

trentm commented 3 years ago

Currently if -i FIELDS is used multiple times, then the FIELDS from the last one win. Ditto for -x FIELDS. I think they should accumulate (as I do in node.js with https://github.com/trentm/node-dashdash/blob/master/examples/custom-option-arrayOfCommaSepString.js). I.e. ecslog -i foo -i bar should include both "foo" and "bar" fields, not just "bar".