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

tex tool updates for some POSIX like support #333

Merged
merged 3 commits into from
Mar 27, 2023
Merged

Conversation

walbourn
Copy link
Member

@walbourn walbourn commented Mar 26, 2023

The texconv, texassemble, and texdiag tools are all Windows command-line tools, and so don't follow POSIX utility conventions. This PR, however, adds support for a few specific behaviors:

texconv --version
texconv --help

All paths read from the command-line or from -flist files are normalized to the Windows path separator, so the tool now accepts UNIX-style paths or Windows-style paths. In order to allow the input filenames to start with a /, you can use -- as an escape to indicate the 'end of options' which will allow input filenames to start with either - or /.

texconv [options] -- /folder/path/to/name/fname.dds

This PR also makes the command-line tools build using C++17 mode.

@walbourn walbourn self-assigned this Mar 26, 2023
@walbourn walbourn linked an issue Mar 26, 2023 that may be closed by this pull request
@walbourn walbourn changed the title tex tool updates for POSIX tex tool updates for some POSIX like support Mar 26, 2023
@walbourn
Copy link
Member Author

walbourn commented Mar 26, 2023

@walbourn walbourn added the tools Applies to texconv, texdiag, texassemble, etc. label Mar 27, 2023
@walbourn walbourn merged commit 654ec26 into main Mar 27, 2023
@walbourn walbourn deleted the posixdoublehyphen branch March 27, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Applies to texconv, texdiag, texassemble, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

texconv fails to strip the file path when using forward slash
2 participants