Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

cgwalters
Copy link
Collaborator

I wanted to add a CLI option here to avoid the reboot, and ran into the fact that our option parsing was suboptimal to start with.

We never documented BOOTC_REINSTALL_CONFIG at all...I'm kind of tempted to deprecate it.

@bootc-bot bootc-bot bot requested a review from jeckersb September 25, 2025 13:34
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the command-line argument and configuration file handling in system-reinstall-bootc to correctly process --help. The changes are a good step forward, but the current implementation has a flaw where --help is not handled if the BOOTC_REINSTALL_CONFIG environment variable is set. My review provides suggestions to fix this by always parsing CLI arguments first, which ensures --help works correctly in all scenarios. I've also included recommendations to improve error reporting and to expand the new test case to cover this edge case.

I wanted to add a CLI option here to avoid the reboot, and
ran into the fact that our option parsing was suboptimal to
start with.

We never documented `BOOTC_REINSTALL_CONFIG` at all...I'm
kind of tempted to deprecate it.

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters enabled auto-merge (rebase) September 25, 2025 15:12
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