mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-18 08:43:37 +00:00
20 lines
306 B
Python
20 lines
306 B
Python
|
import sys
|
||
|
|
||
|
print('Args:', sys.argv)
|
||
|
|
||
|
if 8 != len(sys.argv):
|
||
|
print('ERROR')
|
||
|
exit()
|
||
|
else:
|
||
|
try:
|
||
|
int(sys.argv[3])
|
||
|
int(sys.argv[4])
|
||
|
int(sys.argv[5])
|
||
|
int(sys.argv[6])
|
||
|
except Exception as e:
|
||
|
print(e)
|
||
|
print('ERROR')
|
||
|
exit()
|
||
|
|
||
|
print('SUCCESS')
|