Closed diogoosorio closed 7 years ago
@diogoosorio I agree. I had to make a few very minor changes due to an earlier PR but everything is now merged. Can definitely see this keeping a more manageable code base as we bring more features into the project - and agree with the API approach, makes a lot of sense.
This PR refactors the way the CLI argument parsing is done. It contains the argument definition and parsing logic within the
cli_argument_parser
class.The rationale for doing this is threefold:
core
module (i.e. be able to have a web-based UI for thevirtual_host_scanner
).I'm striving for an API something like the following:
This is definitely an opinionated PR and as such I'm obviously 100% open to discussion.