zap
zap copied to clipboard
Clean up verbose printing
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.
Thanks. I'll take a look soon.