Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up verbose printing #19

Open
sevmonster opened this issue Jun 21, 2021 · 1 comment
Open

Clean up verbose printing #19

sevmonster opened this issue Jun 21, 2021 · 1 comment

Comments

@sevmonster
Copy link
Contributor

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.

@Jehops
Copy link
Owner

Jehops commented Jun 21, 2021

Thanks. I'll take a look soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants