From 55c293a267ce95c8f319b59354e86e523245b774 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 25 Apr 2024 22:15:30 +0000 Subject: json doc git-svn-id: svn://tug.org/texlive/trunk@71079 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 32 ++++++++++++++++-------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 4d65fc3839c..43aa76a4dc2 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -1713,7 +1713,7 @@ sub action_info { my @datafields; my $fmt = "list"; if ($opts{'data'} && $opts{'json'}) { - tlwarn("Preferring json output over data output!\n"); + tlwarn("Preferring JSON output over data output!\n"); delete($opts{'data'}); } if ($opts{'json'}) { @@ -8626,7 +8626,7 @@ Dump the remote TLPDB. =item B<--json> Instead of dumping the actual content, the database is dumped as -JSON. For the format of JSON output see C, +JSON. For the format of JSON output see C, format definition C. =back @@ -8850,11 +8850,11 @@ page for new packages: L. =item B<--json> -In case C<--json> is specified, the output is a JSON encoded array where -each array element is the JSON representation of a single C but -with additional information. For details see -C, format definition: C. If both -C<--json> and C<--data> are given, C<--json> takes precedence. +If C<--json> is specified, the output is a JSON encoded array where each +array element is the JSON representation of a single C but with +additional information. For details see C, +format definition: C. If both C<--json> and C<--data> are +given, C<--json> takes precedence. =back @@ -8989,7 +8989,7 @@ synonym). Both C forms take an option C<--json>, which dumps the option information in JSON format. In this case, both forms dump the same data. For the format of the JSON output see -C, format definition C. +C, format definition C. In the third form, with I, if I is not given, the setting for I is displayed. If I is present, I is set to @@ -9105,7 +9105,7 @@ sizes for that program. The first size shown is the default. If C<--json> is specified without other options, the paper setup is dumped in JSON format. For the format of JSON output see -C, format definition C. +C, format definition C. Incidentally, this syntax of having a specific program name before the C keyword is unusual. It is inherited from the longstanding @@ -9443,10 +9443,11 @@ Don't ask questions. =item B<--json> -When listing backups, the option C<--json> turn on JSON output. -The format is an array of JSON objects (C, C, C). -For details see C, format definition: C. -If both C<--json> and C<--data> are given, C<--json> takes precedence. +When listing backups, the option C<--json> writes JSON output. The +format is an array of JSON objects (C, C, C). For +details see C, format definition: +C. If both C<--json> and C<--data> are given, C<--json> takes +precedence. =back @@ -9492,8 +9493,9 @@ C (unless they also contain the word C on its own). =item B<--json> -Output search results as json hash with two keys: B and B. - +Output search results as a JSON hash with two keys: B and +B. For the format of the JSON output see +C, format definition C. =back -- cgit v1.2.3