summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2024-04-25 05:01:51 +0000
committerNorbert Preining <preining@logic.at>2024-04-25 05:01:51 +0000
commit14d8b2a58434d618a3531b792dec291d56bcc6d5 (patch)
tree626f756c5e77af8a054b144eab06e2d84cf2eb67 /Master
parentc5dd3044ffb3b22e16509c408f46053fd61d1e7f (diff)
tlmgr: make --json action specific to warn when not supported
git-svn-id: svn://tug.org/texlive/trunk@71075 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl15
1 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index fdc7b9c8055..4d65fc3839c 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -168,7 +168,7 @@ my %action_specification = (
"function" => \&action_conf
},
"dump-tlpdb" => {
- "options" => { local => 1, remote => 1 },
+ "options" => { local => 1, remote => 1, json => 1 },
"run-post" => 0,
"function" => \&action_dumptlpdb
},
@@ -212,7 +212,8 @@ my %action_specification = (
"all" => 1,
"list" => 1,
"only-installed" => 1,
- "only-remote" => 1
+ "only-remote" => 1,
+ "json" => 1
},
"run-post" => 0,
"function" => \&action_info
@@ -240,11 +241,12 @@ my %action_specification = (
"function" => \&action_key
},
"option" => {
+ "options" => { "json" => 1 },
"run-post" => 1,
"function" => \&action_option
},
"paper" => {
- "options" => { "list" => 1 },
+ "options" => { "list" => 1, "json" => 1 },
"run-post" => 1,
"function" => \&action_paper
},
@@ -300,7 +302,8 @@ my %action_specification = (
"all" => 1,
"backupdir" => "=s",
"dry-run|n" => 1,
- "force" => 1
+ "force" => 1,
+ "json" => 1,
},
"run-post" => 1,
"function" => \&action_restore
@@ -311,6 +314,7 @@ my %action_specification = (
"file" => 1,
"global" => 1,
"word" => 1,
+ "json" => 1,
},
"run-post" => 1,
"function" => \&action_search
@@ -348,7 +352,6 @@ my %globaloptions = (
"debug-translation" => 1,
"h|?" => 1,
"help" => 1,
- "json" => 1,
"location|repository|repo" => "=s",
"machine-readable" => 1,
"no-execute-actions" => 1,
@@ -6715,7 +6718,7 @@ sub action_shell {
# keys which can be set/get and are also settable via global cmdline opts
my @valid_bool_keys
= qw/debug-translation machine-readable no-execute-actions
- verify-repo json/;
+ verify-repo/;
my @valid_string_keys = qw/repository prompt/;
my @valid_keys = (@valid_bool_keys, @valid_string_keys);
# set auto flush unconditionally in action shell