Skip to content

Commit

Permalink
fix: improve generated config comment formatting (intel#3936)
Browse files Browse the repository at this point in the history
* fixes intel#3829
  • Loading branch information
Error838 authored Mar 14, 2024
1 parent 6625e9b commit 46deb12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cve_bin_tool/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ def config_generator(config_format, organized_arguments):
if arg_value in [True, False]
else arg_value
)
f.write(f" {arg_name} {sign} {arg_val}\n" f" #{arg_help}\n\n")
f.write(
f" # {arg_help}\n" f" {arg_name} {sign} {arg_val}\n\n"
)
elif arg_value is not None:
f.write(
f" {arg_name} {sign} {coma}{arg_value}{coma}\n"
f" #{arg_help}\n\n"
f" # {arg_help}\n"
f" {arg_name} {sign} {coma}{arg_value}{coma}\n\n"
)

0 comments on commit 46deb12

Please sign in to comment.