Clean up arg parsing #53
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: cleanup
An internal cleanup or hygiene concern.
Each
do*()
method in the cbt parses its own arguments and constructs the appropriate call to the service. It would be nice to refactor these methods to use an argument struct that is composed by another function that only parses arguments.Why to do this:
doLookup()
anddoRead()
).do*()
method has multiple concerns--arg parsing and composing the calls to the service. This breaks the principle of orthogonality.The text was updated successfully, but these errors were encountered: