Format commands in code
This commit is contained in:
+6
-3
@@ -1,4 +1,3 @@
|
||||
|
||||
HELP_LINES = []
|
||||
|
||||
with open('game.py', 'r') as f:
|
||||
@@ -8,6 +7,10 @@ with open('game.py', 'r') as f:
|
||||
|
||||
|
||||
for line in HELP_LINES:
|
||||
print(line)
|
||||
print()
|
||||
if ' - ' in line:
|
||||
command, doc = line.split(' - ')
|
||||
print('`{}` - {}\n'.format(command, doc))
|
||||
else:
|
||||
print(line)
|
||||
print()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user