mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-07-31 04:40:35 +02:00
Fixed a bunch of docs errors with Usage headers.
This commit is contained in:
@@ -405,6 +405,10 @@ class LeafNode(object):
|
||||
dummy, title = line.split(":", 1)
|
||||
title = title.strip()
|
||||
lines, block = get_comment_block(lines, prefix)
|
||||
if block == []:
|
||||
print("Error: Usage header without any usage examples.")
|
||||
print(line)
|
||||
sys.exit(-2)
|
||||
self.usages.append([title, block])
|
||||
continue
|
||||
if line.startswith("Description:"):
|
||||
|
Reference in New Issue
Block a user