fixup: args
This commit is contained in:
parent
a11f073eb5
commit
886d6f5a6c
1 changed files with 3 additions and 1 deletions
|
@ -69,8 +69,10 @@ def main():
|
||||||
device = sys.argv[3]
|
device = sys.argv[3]
|
||||||
room = sys.argv[4]
|
room = sys.argv[4]
|
||||||
maildir = sys.argv[5]
|
maildir = sys.argv[5]
|
||||||
if len(sys.argv) > 5:
|
if len(sys.argv) > 6:
|
||||||
tokenfile = sys.argv[6]
|
tokenfile = sys.argv[6]
|
||||||
|
else:
|
||||||
|
tokenfile = "apitoken.txt"
|
||||||
|
|
||||||
client = Client(homeserver, username, device, room, maildir)
|
client = Client(homeserver, username, device, room, maildir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue