ruby - How important is adding quiet/verbose flags to new unix tools? -
I'm writing some Unix-style ruby scripts that take the option flag. Generally, I write lots of STDOUT.puts
and STDERR.puts
in these scripts. Now I am wondering if the STDERR is a "good form" to put in the - verbose
or -q
flag to switch or turn on supportive output .
- This will make the program more complicated,
- User is already redirected to STDERR By logging outputs can silence / dev / null
But again, one of the principles of Unix philosophy is that silence is golden, which means that always -Web mode mode But should it be stem with the principle of making small programs And who is not, who does one thing well?
And the second question will be: If the mute / verbose flag is a good idea, should verbosity be the default ever?
Can some UNIX programming gurus please advise?
Tools that I need to redirect to STDERR to turn them off. To support cool operation This is not too complicated.
Comments
Post a Comment