diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:55:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:55:13 -0500 |
commit | b859f0facea46f044069de9a16acc05c30457945 (patch) | |
tree | 159382449edbe9da9ff19d2f7d6bac0301019062 /devscripts/make_readme.py | |
parent | 3d298df734aa40c1fd24f8724053d4f9de2981b2 (diff) | |
download | hypervideo-pre-b859f0facea46f044069de9a16acc05c30457945.tar.lz hypervideo-pre-b859f0facea46f044069de9a16acc05c30457945.tar.xz hypervideo-pre-b859f0facea46f044069de9a16acc05c30457945.zip |
fix make readme
Diffstat (limited to 'devscripts/make_readme.py')
-rwxr-xr-x | devscripts/make_readme.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devscripts/make_readme.py b/devscripts/make_readme.py index 3f56af744..47d6d27b7 100755 --- a/devscripts/make_readme.py +++ b/devscripts/make_readme.py @@ -18,12 +18,12 @@ if isinstance(helptext, bytes): with io.open(README_FILE, encoding='utf-8') as f: oldreadme = f.read() -header = oldreadme[:oldreadme.index('## General Options:')] +header = oldreadme[:oldreadme.index('# OPTIONS')] footer = oldreadme[oldreadme.index('# CONFIGURATION'):] -options = helptext[helptext.index(' General Options:'):] +options = helptext[helptext.index(' General Options:') + 19:] options = re.sub(r'(?m)^ (\w.+)$', r'## \1', options) -options = options + '\n' +options = '# OPTIONS\n' + options + '\n' with io.open(README_FILE, 'w', encoding='utf-8') as f: f.write(header) |