Mon Jun 26 15:25:26 CEST 2023
This commit is contained in:
+10
-10
@@ -11,18 +11,18 @@ import os
|
||||
from datetime import datetime
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(prog="ŠOLEn", description="ŠOLEn, an enhanced version of the ŠkolaOnLine online school system")
|
||||
parser = argparse.ArgumentParser(prog="solen", description="solen, an enhanced version of the ŠkolaOnLine online school system")
|
||||
|
||||
parser.add_argument("-t", "--today-tomorrow", action="store_true", help="Show the schedule for today and tomorrow")
|
||||
parser.add_argument("-w", "--week", action="store_true", help="Show the schedule for this week")
|
||||
parser.add_argument("-g", "--grades", action="store_true", help="Show the grades")
|
||||
parser.add_argument("-u", "--username", action="store", default="", help="Provide the username for login")
|
||||
parser.add_argument("-p", "--password", action="store", default="", help="Provide the password for login")
|
||||
parser.add_argument("-l", "--local", action="store_true", help="Only fetch local files, don't connect to the internet")
|
||||
parser.add_argument("-d", "--delete-local-files", action="store_true", help="Delete all local user data, including schedules, grades and user credentials")
|
||||
parser.add_argument("-t", "--today-tomorrow", action="store_true", help="show the schedule for today and tomorrow")
|
||||
parser.add_argument("-w", "--week", action="store_true", help="show the schedule for this week")
|
||||
parser.add_argument("-g", "--grades", action="store_true", help="show the grades")
|
||||
parser.add_argument("-u", "--username", action="store", default="", help="provide the username for login")
|
||||
parser.add_argument("-p", "--password", action="store", default="", help="provide the password for login")
|
||||
parser.add_argument("-l", "--local", action="store_true", help="only fetch local files, don't connect to the internet")
|
||||
parser.add_argument("-d", "--delete-local-files", action="store_true", help="delete all local user data, including schedules, grades and user credentials")
|
||||
|
||||
parser.add_argument("-b", "--backup", action="store_true", help="Back up all user data and store them in a .tar.gz archive in the destination directory")
|
||||
parser.add_argument("-R", "--backup-restore", action="store", nargs=1, metavar="PATH", help="Specify the path to a .tar.gz archive that was earlier created with ŠOLEn to restore backed up user data")
|
||||
parser.add_argument("-b", "--backup", action="store_true", help="back up all user data and store them in a .tar.gz archive")
|
||||
parser.add_argument("-R", "--backup-restore", action="store", nargs=1, metavar="PATH", help="specify the path to a .tar.gz archive that was previously created with Solen")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user