Make --json and --quiet suppress automatic init messages
And any other messages that might be output before a command starts. Fixes a reversion introduced in version 5.20150727. During the optparse-applicative conversion, I needed a place to run per-command global option setters, and I made it get run during the seek stage. But that is too late to have --json and --quiet disable output produced in the check stage. Fix is just to run those per-command global option setters at the same time as the all-command global option setters. This commit was sponsored by Thom May.
This commit is contained in:
parent
c9082cf0e4
commit
219e2fa157
6 changed files with 21 additions and 14 deletions
|
@ -38,3 +38,4 @@ I really like git annex and its concepts and I'm currently in the process of add
|
|||
So far it works very well and it seems like I finally found a scalable and convenient solution to protect all my files and make them accessible from everywhere.
|
||||
|
||||
|
||||
> [[fixed|done]] --[[Joey]]
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2016-09-05T18:44:00Z"
|
||||
content="""
|
||||
Hmm, seems that the output happens before it gets around to parsing the
|
||||
--json, which will disable such outputs.
|
||||
|
||||
Probably a reversion introduced with the switch to optparse-applicative.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue