meg icon indicating copy to clipboard operation
meg copied to clipboard

Support multiple values for an option & negative match if possible

Open TvMpt opened this issue 7 years ago • 2 comments

I am not quite sure what the appropriate pattern for this might be, either a comma separated list: -s 200,403 Or be specified multiple times -s 200 -s 403

and if possible add a negative match parameter -e 404,500 ( save all except 404/500 )

I dont know if makes sense but if user explicit use -s or -e parameters, apply those filters to output (terminal/files)

TvMpt avatar Jan 08 '18 14:01 TvMpt

This is a great idea :)

I think specifying the flag multiple times is probably the most 'standard' way to do it - it's how the -H / --header flag works.

The negative / exclude parameter seems like a good approach too.

Thanks!

tomnomnom avatar Jan 08 '18 14:01 tomnomnom

related feature request: https://github.com/tomnomnom/meg/issues/54#issuecomment-672568050 @tomnomnom Can you provide an estimate on that? Wouldn't want to work with the fork.

storenth avatar Aug 12 '20 04:08 storenth