Explorar o código

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

Thomas Waldmann %!s(int64=9) %!d(string=hai) anos
pai
achega
2f2925ed89
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -163,6 +163,7 @@ class build_usage(Command):
         for command, parser in choices.items():
             print('generating help for %s' % command)
             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':
                     for topic in Archiver.helptext:
                         params = {"topic": topic,