7 print('<itemizedlist>')
10 for l in subprocess.run(['run/%s' % sys.argv[1], '--help'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.splitlines():
11 l = l.strip().decode('UTF-8')
12 if not l.startswith('-'):
16 print('<listitem>', end='')
20 if l.startswith('-') and not l.startswith('--'):
21 print('<code>%s</code>, ' % s[0][:-1], end='')
26 print('<code>%s %s</code>' % (s[n], s[n+1].replace('<', '<').replace('>', '>')), end='')
27 e += len(s[n]) + len(s[n+1]) + 1
29 print('<code>%s</code>' % s[n], end='')
36 if i == '"' and t == False:
37 fixed_desc += '“'
39 elif i == '"' and t == True:
40 fixed_desc += '”'
45 print(' — %s</listitem>' % fixed_desc)
47 print('</itemizedlist>')
48 print('</para>', end='')
49 os.chdir('doc/manual')