Closed goofinator closed 4 years ago
Some changes to decrease cyclomatic complexities of some functions. In most cases, it's just a decomposition on sub functions.
Some tests in argparse_test.go refactored to work through the cycles instead of simple text repeatation.
Processing of Default values (argument.go/setDefault) uses reflection, so all cases except of os.File cases, merged in one case block.
Some changes to decrease cyclomatic complexities of some functions. In most cases, it's just a decomposition on sub functions.
Some tests in argparse_test.go refactored to work through the cycles instead of simple text repeatation.
Processing of Default values (argument.go/setDefault) uses reflection, so all cases except of os.File cases, merged in one case block.