tomnomnom / meg

Fetch many paths for many hosts - without killing the hosts
MIT License
1.6k stars 267 forks source link

Support multiple values for an option & negative match if possible #23

Open TvMpt opened 6 years ago

TvMpt commented 6 years ago

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)

tomnomnom commented 6 years ago

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!

storenth commented 4 years ago

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.