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

more --fullpath options #255

Merged
merged 3 commits into from
Jan 27, 2025
Merged

more --fullpath options #255

merged 3 commits into from
Jan 27, 2025

Conversation

ped7g
Copy link
Collaborator

@ped7g ped7g commented Jan 26, 2025

Add more fine-tuned --fullpath option providing both "relative to launch-dir" and "absolute full path" ways.

This potentially opens path for more finetuned --fullpath option
providing both "relative to launchdir" and "absolute full path" ways, if
this proof of concept works on all platforms.
@ped7g ped7g added this to the v1.21.0 milestone Jan 26, 2025
@ped7g ped7g self-assigned this Jan 26, 2025
ped7g added 2 commits January 27, 2025 02:40
Unify filename string used for output (errors, listing, sld, ...) and
make it depend on the --fullpath option.

Add three levels internally: 1) base filename (default), 2) relative to
launch dir, 3) absolute full path

The only exception is opening some.lua file where the c-string path to
open is processed by lua itself and also preserved for source-positon
debug info, which becomes visible in error messages - here the
relative-to-launch-dir normalization is enforced (to make error strings
reasonable).

The `--fullpath` option itself is not modified in this commit yet, still
works as before (allowing only options 1) and 2))
added: CLI option parsing, test, docs
@ped7g ped7g marked this pull request as ready for review January 27, 2025 03:01
@ped7g ped7g merged commit e207d99 into master Jan 27, 2025
12 checks passed
@ped7g ped7g deleted the fullpath_experiment branch January 27, 2025 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant