h3 icon indicating copy to clipboard operation
h3 copied to clipboard

DRY the CLI

Open dfellis opened this issue 1 year ago • 1 comments

Based on the discussion with @nrabinowitz in the prior CLI PR. This PR removes duplicate help text and argument types, and turns the arg length trick (and all of the "show subcommand-specific help text" code) into a macro, deleting about twice as much text as it adds.

PS. DRY the CLI does not rhyme.

dfellis avatar Mar 29 '24 19:03 dfellis

Coverage Status

coverage: 98.824% (-0.003%) from 98.827% when pulling ea7489f5ef218baadd2807498c5cc17512e515f5 on dry-the-cli into b49e72e6b3c6be7130c86236340d1b62a31496d2 on master.

coveralls avatar Mar 29 '24 19:03 coveralls