066710ba7b
- Use strong-typed switches for validating options - Initialize defaults instead of setting them after parsing the ports. Each option should be validated as part of the parsing, so no invalid (or empty) values should be set. - Put variables closer to where they're used, and pre-allocate slices. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>