summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc/constants.tlu
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-11-24 19:46:08 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-11-24 19:46:08 +0000
commitaa1420a6770a5148a153b2b1e4283fb91a9a3d3b (patch)
treed9582016d27249d388221be878ae5b3c2e6d6265 /Master/texmf/scripts/texdoc/constants.tlu
parent01da98ba6f4010aa1cf6163e019c8ebeb24f68bd (diff)
Texdoc 0.60.
git-svn-id: svn://tug.org/texlive/trunk@16153 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/texdoc/constants.tlu')
-rw-r--r--Master/texmf/scripts/texdoc/constants.tlu36
1 files changed, 23 insertions, 13 deletions
diff --git a/Master/texmf/scripts/texdoc/constants.tlu b/Master/texmf/scripts/texdoc/constants.tlu
index 6ff1fb079e1..b1a0bcc4e19 100644
--- a/Master/texmf/scripts/texdoc/constants.tlu
+++ b/Master/texmf/scripts/texdoc/constants.tlu
@@ -8,12 +8,14 @@ See texdoc.tlu for details.
local L = {}
load_env(L, {
'setmetatable', 'next', 'assert', 'error',
+ 'arg',
'C',
})
-- progname and version
-progname = 'texdoc'
-version = '0.50'
+fullname = arg[0]
+progname = 'texdoc'
+version = '0.60'
-- make sure to update setup_config_from_cl() accordingly
-- and set a default value in setup_config_from_defaults() if relevant
@@ -23,18 +25,18 @@ With no NAME, it can print configuration information (-f, --files);
the usual --help and --version options are also accepted.
Usage: texdoc [OPTIONS]... [NAME]...
-f, --files Print the name of the config files being used.
- -e, --extensions=L Require file extensions to be in the list L.
-w, --view Use view mode: start a viewer.
-m, --mixed Use mixed mode (view or list).
- -l, --list Use list mode: don't start a viewer.
- -s, --search Search for name as a substring.
- -r, --regex Search for name as a lua regex.
+ -l, --list Use list mode: show a list of results.
+ -s, --showall Use showall mode: show also "bad" results.
+ -r, --regex Use regex mode. (Deprecated.)
+ -e, --extensions=L Set ext_list=L. (Deprecated.)
-a, --alias Use the alias table.
-A, --noalias Don't use the alias table.
-i, --interact Use interactive menus.
-I, --nointeract Use plain lists, no interaction required.
-v, --verbosity=N Set verbosity level to N.
- -d, --debug Set verbosity level to maximum.
+ -d, --debug[=list] Activate debug for selected items (default all).
-M, --machine Use a more machine-friendly output format.
Environment: PAGER, BROWSER, PDFVIEWER, PSVIEWER, DVIVIEWER.
Files: <texmf>/texdoc/texdoc.cnf files, see the -f option.
@@ -56,7 +58,9 @@ known_options = {
'machine_switch',
'alias_switch',
'ext_list',
+ 'badext_list',
'verbosity_level',
+ 'debug_list',
'lastfile_switch',
'rm_dir',
'rm_file',
@@ -68,13 +72,19 @@ err_priority = {
error = 1,
warning = 2,
info = 3,
- debug1 = 4,
- debug2 = 5,
- debug3 = 6,
- debug4 = 7,
- debug5 = 8,
}
-err_max = 8
+
+known_debugs = {
+ version = {},
+ files = {},
+ config = {'files'},
+ view = {},
+ texdocs = {},
+ filesea = {},
+ lsrsea = {},
+ kpse = {'texdocs', 'filesea', 'lsrsea'},
+ score = {},
+}
place_holder = '%%s' -- used for viewer commands