Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse command line arguments #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
updated readme
nettoyeur committed Jun 4, 2013
commit c3a03b8ce4c440e0ca57511bad54b70a49143b2a
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,25 @@ Optionally set another options in `config.py` like `writesubtitles` to enable su

### Usage:

+ `python edx_dl.py`
+ `python edx_dl.py c:\Users\MyUser\Lectures\`
+ `python edx_dl.py --interactive c:\Users\MyUser\Lectures\`
```
usage: edx_dl.py [-h] [-u USERNAME] [-p PASSWORD]
[-c <course name> [<course name> ...]]
[-d DESTDIR] [-i]

Make courses from EdX powered courses available offline.

optional arguments:
-h, --help show this help message and exit
-u USERNAME, --username USERNAME
username (if omitted search in profile file, then
.netrc used)
-p PASSWORD, --password PASSWORD
users password
-c <course name> [<course name> ...], --courses <course name> [<course name> ...]
one or more course names (better use course id in the
url e.g. "M101" for 10gen or "CS188.1x" for EdX )
-d DESTDIR, --destdir DESTDIR
destination directory for downloaded content
-i, --interactive run in interactive mode

```