Debian Codegraph @

scripts/make-help.py

raw
1 import re
2 import sys
3
4 regex = re.compile(r'^([a-zA-Z_-]+):.*?## (.*)$')
5
6 for line in sys.stdin:
7 match = regex.match(line)
8 if match:
9 target, help = match.groups()
10 print("%-20s %s" % (target, help))