Skip to content

Commit 0cb4dd6

Browse files
committed
Drop deprecated command-line optione.
1 parent 1537f78 commit 0cb4dd6

File tree

1 file changed

+2
-45
lines changed

1 file changed

+2
-45
lines changed

script/config.tlu

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ function setup_config_from_cl(arg)
145145
set_config_elt('mode', 'list')
146146
elseif (curr_arg == '-s') or (curr_arg == '--showall') then
147147
set_config_elt ('mode', 'showall')
148-
elseif (curr_arg == '--search') then
149-
set_config_elt ('mode', 'showall')
150-
err_print('warning', '--search has been renamed to --showall')
151-
err_print('warning', 'Please use the new name.')
152148
-- interaction
153149
elseif (curr_arg == '-I') or (curr_arg == '--nointeract') then
154150
set_config_elt('interact_switch', 'false')
@@ -166,50 +162,11 @@ function setup_config_from_cl(arg)
166162
elseif string.match(curr_arg, '^%-%-debug=') then
167163
local value = string.gsub(curr_arg, '^%-%-debug=', '')
168164
set_config_elt('debug_list', value)
169-
-- quiet
165+
-- verbosity
170166
elseif (curr_arg == '-q') or (curr_arg == '--quiet') then
171167
set_config_elt('verbosity_level', C.min_verbosity)
172-
-- verbose
173-
elseif string.match(curr_arg, '^%-%-verbose') then
168+
elseif (curr_arg == '-v') or (curr_arg == '--verbose') then
174169
set_config_elt('verbosity_level', C.max_verbosity)
175-
elseif string.match(curr_arg, '^%-v') then
176-
local value = string.gsub(curr_arg, '^%-v=?', '')
177-
if value == '' then
178-
set_config_elt('verbosity_level', C.max_verbosity)
179-
else -- compatibility syntax
180-
err_print('warning',
181-
'The -v option does not accept arguments any more.')
182-
err_print('warning',
183-
'Please use the new syntax -v, --verbose (without argument).')
184-
set_config_elt('verbosity_level', value)
185-
end
186-
elseif string.match(curr_arg, '^%-%-verbosity') then
187-
-- compatibility syntax
188-
local value = string.gsub(curr_arg, '^%-%-verbosity=?', '')
189-
err_print('warning',
190-
'--verbosity is deprecated and will be removed soon.')
191-
err_print('warning',
192-
'Please use the new syntax -v, --verbose (without argument).')
193-
set_config_elt('verbosity_level', value)
194-
-- extensions list (deprecated)
195-
elseif string.match(curr_arg, '^%-e') then
196-
local value = string.gsub(curr_arg, '^%-e=?', '')
197-
set_config_elt('ext_list', value)
198-
err_print('warning',
199-
'-e is deprecated and will likely be removed soon.')
200-
err_print('warning',
201-
'ext_list should be set in a configuration file instead.')
202-
err_print('warning',
203-
'Please protest on the texdoc mailing list if you need this.')
204-
elseif string.match(curr_arg, '^%-%-extensions') then
205-
local value = string.gsub(curr_arg, '^%-%-extensions=?', '')
206-
set_config_elt('ext_list', value)
207-
err_print('warning',
208-
'--extensions is deprecated and will likely be removed soon.')
209-
err_print('warning',
210-
'ext_list should be set in a configuration file instead.')
211-
err_print('warning',
212-
'Please protest on the texdoc mailing list if you need this.')
213170
-- problem
214171
else
215172
err_print('error', "unknown option: "..curr_arg)

0 commit comments

Comments
 (0)