Update terminis.py
This commit is contained in:
parent
dbf3b04279
commit
2a83769797
@ -378,7 +378,7 @@ class Stats(Window):
|
||||
try:
|
||||
self.level = int(sys.argv[1])
|
||||
except ValueError:
|
||||
usage()
|
||||
print_help()
|
||||
sys.exit(1)
|
||||
else:
|
||||
self.level = max(1, self.level)
|
||||
@ -736,11 +736,16 @@ def edit():
|
||||
subprocess.call(["${EDITOR:-vi}", Controls.FILE_PATH])
|
||||
|
||||
def print_help():
|
||||
print("Usage:")
|
||||
print("terminis [--edit|--help|n]")
|
||||
print(" --edit: edit controls in text editor")
|
||||
print(" --help: show command usage (this message)")
|
||||
print(" n (integer between 1 and 15): start at level n")
|
||||
print(
|
||||
"""terminis [--edit|--help|n]
|
||||
|
||||
Tetris clone for terminal
|
||||
|
||||
--edit: edit controls in text editor
|
||||
--help: show command usage (this message)
|
||||
n (integer between 1 and 15): start at level n
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user