Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corner cases for the command line option parser #121

Open
wtsnjp opened this issue Dec 24, 2024 · 0 comments
Open

Corner cases for the command line option parser #121

wtsnjp opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working cli Command-line interface

Comments

@wtsnjp
Copy link
Member

wtsnjp commented Dec 24, 2024

Executing an option that requires an argument when executing an action with no argument causes a raw Lua error.

$ texdoc -c --help
...texmf/scripts/texdoc/texdoclib-config.tlu:197: bad argument #1 to 'match' (string expected, got boolean)
$ texdoc -d --files
...texmf/scripts/texdoc/texdoclib-config.tlu:116: bad argument #1 to 'explode' (string expected, got boolean)

The same problem occurs when option analysis is terminated with --.

$ texdoc -c -- texdoc
...texmf/scripts/texdoc/texdoclib-config.tlu:197: bad argument #1 to 'match' (string expected, got boolean)
@wtsnjp wtsnjp added bug Something isn't working cli Command-line interface labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Command-line interface
Projects
None yet
Development

No branches or pull requests

1 participant