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

Fix long argument handling in construct_exec_list #79

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

rikardg
Copy link
Owner

@rikardg rikardg commented Nov 1, 2023

construct_exec_list would construct long arguments such as the directory argument into "--directory DIRECTORY" instead of "--directory=DIRECTORY", so add the missing "=".

Also explicitly exclude the known cases that should not be generated (mostly ones that represent arguments that were not given), and put an assert in the fallthrough else statement to catch any future new cases.

construct_exec_list would construct long arguments such as the directory
argument into "--directory DIRECTORY" instead of "--directory=DIRECTORY",
so add the missing "=".

Also explicitly exclude the known cases that should not be generated
(mostly ones that represent arguments that were not given), and put an
assert in the fallthrough else statement to catch any future new cases.
@rikardg rikardg force-pushed the construct_exec_list_long_arguments branch from 4201fd2 to 292a4f1 Compare November 1, 2023 23:38
@rikardg rikardg merged commit 4db0f16 into master Nov 1, 2023
14 checks passed
@rikardg rikardg deleted the construct_exec_list_long_arguments branch November 1, 2023 23:49
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