aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/make_readme.py
diff options
context:
space:
mode:
Diffstat (limited to 'devscripts/make_readme.py')
-rwxr-xr-xdevscripts/make_readme.py6
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)