[modify] use dos2unix tool to change the file
This commit is contained in:
parent
1168fa1d36
commit
42ec2ca2b7
@ -21,9 +21,6 @@ def usage():
|
|||||||
|
|
||||||
|
|
||||||
def getParams(params):
|
def getParams(params):
|
||||||
if len(params) < 2 or len(params) > 11:
|
|
||||||
print('Need at least 2 parameters, and most can have 11 parameters, exiting...')
|
|
||||||
exit(99)
|
|
||||||
|
|
||||||
params_dict = {'title': '', 'body': '', 'sound': '', 'icon': '', 'group': 'alert', 'copy': '', 'autocopy': '', 'badge': '', 'url': '', 'isarchive': '1', 'level': 'active'}
|
params_dict = {'title': '', 'body': '', 'sound': '', 'icon': '', 'group': 'alert', 'copy': '', 'autocopy': '', 'badge': '', 'url': '', 'isarchive': '1', 'level': 'active'}
|
||||||
elements = ['title', 'body', 'sound', 'icon', 'group', 'copy', 'autocopy', 'badge', 'url', 'isarchive', 'level', 'ciphertxt', 'device_key']
|
elements = ['title', 'body', 'sound', 'icon', 'group', 'copy', 'autocopy', 'badge', 'url', 'isarchive', 'level', 'ciphertxt', 'device_key']
|
||||||
@ -38,7 +35,8 @@ def getParams(params):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) < 3:
|
||||||
|
print('Need at least 2 parameters, and most can have 11 parameters, exiting...')
|
||||||
usage()
|
usage()
|
||||||
|
|
||||||
params = sys.argv[1:]
|
params = sys.argv[1:]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user