Skip to content

feat: support options configuration from multiple sources with priority#263

Open
xiezyang wants to merge 4 commits intolat-opensource:masterfrom
xiezyang:lat-feat-option
Open

feat: support options configuration from multiple sources with priority#263
xiezyang wants to merge 4 commits intolat-opensource:masterfrom
xiezyang:lat-feat-option

Conversation

@xiezyang
Copy link
Copy Markdown
Contributor

@xiezyang xiezyang commented Mar 7, 2026

No description provided.

Refactor parse_args to only read environment variables and argv,
the functionality of setting options parameters is moved to the new function options_set.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
…priority

Allow configuration to be set from:

(1) /etc/latx-x86_64.conf and /etc/latx-i386.conf
(2) ~/.config/latx-x86_64.conf and ~/.config/latx-i386.conf
(3) environment variables (export)
(4) command line arguments

Configuration files use .ini format, allowing per-guest program settings
to be specified.

Priority (higher overrides lower): 4 > 3 > 2 > 1.
For the same option, a higher‑priority source overrides the value from a lower‑priority one.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Remove the following environment variables which are no longer used:

- option_check
- option_em_debug
- option_dump_all_tb

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
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