przemoc / metastore

Store and restore metadata from a filesystem.
http://software.przemoc.net/#metastore
GNU General Public License v2.0
169 stars 31 forks source link

Let --quiet make metastore completely quiet #12

Closed dfandrich closed 9 years ago

dfandrich commented 9 years ago

The --quiet option right now reduces, but does not eliminate, the output of messages. It can be useful in some contexts to make metastore completely silent. If two --quiet options are found on the command-line, only errors should be output, and adding a third --quiet should make it completely silent (a.k.a. "quiet").

przemoc commented 9 years ago

Sounds fine.

(Nitpick regarding semantics - silent is stronger than quiet, because silent -> quiet, quiet -/-> silent)

dfandrich commented 9 years ago

Hmm, I just discovered the code already does this! I should have read the man page instead of relying on the short help.

przemoc commented 9 years ago

That's what I thought actually, but I didn't want to check the code now, as it's getting late here. I'm not sure, though, whether metastore will become truly silent even with plethora of -q. I have vague reminiscence of messages produced without msg() call, but maybe my mind is playing tricks on me.