瀏覽代碼

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

Thomas Waldmann 9 年之前
父節點
當前提交
2f2925ed89
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -163,6 +163,7 @@ class build_usage(Command):
         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,