zmap / zdns

Fast DNS Lookup Library and CLI Tool
Apache License 2.0
891 stars 121 forks source link

Organize CLI flags in `cli.go` by category #391

Closed phillip-stephens closed 3 weeks ago

phillip-stephens commented 2 months ago

Context

I was tired of sifting through the CLI options to find what I needed so I tried to organize them by category. Turns out Cobra doesn't currently support making groups of flags in the --help, so for now this change just affects the source code itself.

There may be a way to accomplish this in the --help with a custom message, but leaving that for a future day.

Testing

None needed, just re-shuffles the declaration of CLI flags.