Skip to content

script: Do not lose flags when retrying command#32

Merged
joamaki merged 1 commit intomainfrom
pr/joamaki/fix-flags-when-retrying
Jan 20, 2025
Merged

script: Do not lose flags when retrying command#32
joamaki merged 1 commit intomainfrom
pr/joamaki/fix-flags-when-retrying

Conversation

@joamaki
Copy link
Copy Markdown
Contributor

@joamaki joamaki commented Jan 20, 2025

Since the parsing of the flags overwrite 'cmd.args' this caused the retry of the command to lose the flags. Keep the original args to the side and use those when parsing the arguments.

Since the parsing of the flags overwrite 'cmd.args' this caused
the retry of the command to lose the flags. Keep the original
args to the side and use those when parsing the arguments.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
@joamaki joamaki requested a review from a team as a code owner January 20, 2025 11:18
@joamaki joamaki requested review from bimmlerd and removed request for a team January 20, 2025 11:18
Copy link
Copy Markdown
Member

@bimmlerd bimmlerd left a comment

Choose a reason for hiding this comment

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

LGTM

@joamaki joamaki merged commit 060318c into main Jan 20, 2025
@joamaki joamaki deleted the pr/joamaki/fix-flags-when-retrying branch January 20, 2025 12: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.

2 participants