Minor CLI modifications
This commit is contained in:
parent
5f7e637083
commit
ebbe56ea75
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -374,15 +375,15 @@ if __name__ == "__main__":
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-c", action="store_true", help="Get history for all accessible conversations"
|
"-c", action="store_true", help="Get history for all accessible conversations"
|
||||||
)
|
)
|
||||||
parser.add_argument("--ch", help="Restrict to given channel ID")
|
parser.add_argument("--ch", help="With -c, restrict export to given channel ID")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--fr",
|
"--fr",
|
||||||
help="Unix timestamp (seconds since Jan. 1, 1970) for earliest message",
|
help="With -c, Unix timestamp (seconds since Jan. 1, 1970) for earliest message",
|
||||||
type=str,
|
type=str,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--to",
|
"--to",
|
||||||
help="Unix timestamp (seconds since Jan. 1, 1970) for latest message",
|
help="With -c, Unix timestamp (seconds since Jan. 1, 1970) for latest message",
|
||||||
type=str,
|
type=str,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue