sesame
sesame copied to clipboard
Option to Run Silently (Do Not Print Anything to the Terminal)
I would like for an option to run silently. Maybe -s
and --silent
. It should prevent the messages from appearing in the terminal.
That seems like a good request but I'm not sure how to do this easily, I would like to avoid having if
s everywhere.
- Close or redirect stdout.
- Wrap the print in a function that does the check.
- Use a logging library that does this.
I'll have a look at the different options, let me know if you have any ideas.
Thanks, I've never programmed in Rust so I'm not sure either.