diff --git a/README.md b/README.md index 527d980..4a90ca6 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ calendar_id = c_xxxxxxxxxxxxxxxxxxxxxxxxxx@group.calendar.google.com ## Usage Run `welearn_bot -h` to get the following help message. ``` -usage: welearn_bot [-h] [-v] [-d] [-c] [-i [IGNORETYPES ...]] [-f] [-p PATHPREFIX] action [courses ...] +usage: welearn_bot [-h] [--version] [-v] [-d] [-c] [-i [IGNORETYPES ...]] [-f] + [-m] [-p PATHPREFIX] + action [courses ...] A command line client for interacting with WeLearn. @@ -78,13 +80,14 @@ positional arguments: urls - lists urls courses - lists enrolled courses whoami - shows the user's name and exits - Abbreviations such as any one of 'f', 'a', 'u', 'c', 'w' are supported. + Abbreviations such as any one of 'f', 'a', 'u', 'c', 'w' are supported. courses IDs of the courses to download files from. The word ALL selects everything from the [courses] section in .welearnrc or welearn.ini -optional arguments: +options: -h, --help show this help message and exit - -v, --version show program's version number and exit + --version show program's version number and exit + -v, --verbose show verbose warnings/errors -d, --dueassignments show only due assignments with the 'assignments' action -c, --gcalendar add due assignments to Google Calendar with the 'assignments' action -i [IGNORETYPES ...], --ignoretypes [IGNORETYPES ...] diff --git a/setup.py b/setup.py index 13857e8..d43e56f 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ author = "Parth Bibekar", author_email = "bibekarparth24@gmail.com", url = "https://github.com/ParthBibekar/Welearn-bot", - version = "1.2.4", + version = "1.2.5", license = "MIT", package_dir = {"": "src"}, packages=setuptools.find_packages(where="src"), diff --git a/src/welearnbot/parser.py b/src/welearnbot/parser.py index bc31285..16ce6ce 100644 --- a/src/welearnbot/parser.py +++ b/src/welearnbot/parser.py @@ -24,7 +24,7 @@ def setup_parser() -> ArgumentParser: nargs="*", help="IDs of the courses to download files from. The word ALL selects everything \nfrom the [courses] section in .welearnrc or welearn.ini", ) - parser.add_argument("--version", action="version", version="1.2.4") + parser.add_argument("--version", action="version", version="1.2.5") parser.add_argument( "-v", "--verbose",