zap icon indicating copy to clipboard operation
zap copied to clipboard

Clean up verbose printing

Open sevmonster opened this issue 3 years ago • 1 comments

The echo and print commands for the verbose flag create a lot of bloat and repeated code and it makes the source harder to read. This can be minimized by adding a function that takes a command line as an argument, prints it if we are being verbose, and then runs it. An optional parameter could be used to replace or augment the string to print, since the command line is not always printed verbatim. If this is something desirable I can submit a PR.

sevmonster avatar Jun 21 '21 05:06 sevmonster

Thanks. I'll take a look soon.

Jehops avatar Jun 21 '21 16:06 Jehops