1
0

quit program

This commit is contained in:
Deven Blake 2021-05-30 17:17:30 -04:00
parent 5b7fa586a0
commit 53b4c5cbcb
3 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,4 @@
from sys import exit from sys import exit
def main(buffer, argv): def main(buffer, argv):
if len(argv) > 1: return 0
print("?")
else:
exit(0)
return buffer

4
it/exit.py Normal file
View File

@ -0,0 +1,4 @@
import sys
def main(buffer, command):
sys.exit(0)

View File

@ -1,8 +1,8 @@
from sys import exit from sys import exit
def main(buffer, argv): def main(buffer, argv):
if len(argv) > 1 or not(buffer.saved): if not(buffer.saved):
print("?") print("?")
else: else:
exit(0) buffer = 0
return buffer return buffer