diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-05 15:32:59 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-05 15:34:38 -0400 |
commit | 1a5415ba53e2c231eef4801a928a175ca7fe4c1f (patch) | |
tree | d29e09a3356201c8e9f21c7fd164157188859523 /doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string | |
parent | 31f118f51dc3a8a32c0257209544dfb50542f696 (diff) |
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.
Diffstat (limited to 'doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string')
-rw-r--r-- | doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string/comment_1_fa80da021e6a1d1ab5e138199d83f1d2._comment | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string/comment_1_fa80da021e6a1d1ab5e138199d83f1d2._comment b/doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string/comment_1_fa80da021e6a1d1ab5e138199d83f1d2._comment new file mode 100644 index 000000000..841ce613d --- /dev/null +++ b/doc/bugs/git_annex_info_--json_--fast_outputs_text_in_addition_to_the_json_string/comment_1_fa80da021e6a1d1ab5e138199d83f1d2._comment @@ -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. +"""]] |