Skip to content

Commit

Permalink
chore(cli): Avoid deprecation error if includes not actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 19, 2023
1 parent f5114d3 commit 694e000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ cli.parseArguments = function ()
for _, path in ipairs(opts.postamble) do
table.insert(SILE.input.postambles, path)
end
if opts.include then
if #opts.include > 0 then
SU.deprecated("-I/--include", "-u/--use or -p/--preamble", "0.14.0", "0.15.0")
end
-- http://lua-users.org/wiki/VarargTheSecondClassCitizen
Expand Down

0 comments on commit 694e000

Please sign in to comment.