Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix a bug in the opt docs (#4487)
Browse files Browse the repository at this point in the history
* Fix a bug in the opt docs

* Few
  • Loading branch information
stephenroller authored Apr 8, 2022
1 parent f91bd80 commit 9372227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/generate_opt_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
expansion_str = []
for key, value in expansion.items():
key = '--' + key.replace('_', '-')
value = str(value).replace("\n", r"\n")
expansion_str.append(f'`{key} {value}`')
expansion_str = " ".join(expansion_str)
fout.write(f'`{alias}` | {description} | {expansion_str}\n')
Expand Down

0 comments on commit 9372227

Please sign in to comment.