add a do-not-edit note to auto-generated files

This commit is contained in:
Thomas Waldmann 2016-07-05 23:29:23 +02:00
parent 2922948100
commit 2f2925ed89

View File

@ -163,6 +163,7 @@ def run(self):
for command, parser in choices.items(): for command, parser in choices.items():
print('generating help for %s' % command) print('generating help for %s' % command)
with open('docs/usage/%s.rst.inc' % command, 'w') as doc: with open('docs/usage/%s.rst.inc' % command, 'w') as doc:
doc.write(".. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!\n\n")
if command == 'help': if command == 'help':
for topic in Archiver.helptext: for topic in Archiver.helptext:
params = {"topic": topic, params = {"topic": topic,