~tieong/download-course

570ab6a90fdcf79ecc10bca3fed7998e11afd6d8 — Thomas Ieong 2 years ago f4b0e9b dev
Fixed typo
2 files changed, 11 insertions(+), 6 deletions(-)

M README.md
M setup.cfg
M README.md => README.md +9 -4
@@ 21,7 21,7 @@ pip3 install dist/Download... .whl
## Usage

```
usage: download_REPLACE_ME_course [-h] --city CITY [--promotion PROMOTION] [-o OUTPUT_DIR] [--debug]
usage: download-REPLACE_ME-courses [-h] --city CITY [--promotion PROMOTION] [-o OUTPUT_DIR] [--debug]

options:
  -h, --help            show this help message and exit


@@ 29,7 29,7 @@ options:
  --promotion PROMOTION
                        The exact promotion name and year, ex: 'REPLACE_MEREPLACE_ME'
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output dir, Default is current dir
                        Output dir, Default is home dir
  --debug               Verbose output.
```



@@ 38,11 38,16 @@ options:
export REPLACE_ME_USERNAME=<username>
export REPLACE_ME_PASSWORD=<password>

download_REPLACE_ME_course --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements
download-REPLACE_ME-courses --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements

or

REPLACE_ME_USERNAME=<user> REPLACE_ME_PASSWORD=<password> download_REPLACE_ME_course --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements

REPLACE_ME_USERNAME=<user> REPLACE_ME_PASSWORD=<password> download_REPLACE_ME_courses --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements

If you use a password manager you can do something like this :

REPLACE_ME_USERNAME=$(pass REPLACE_ME/user | tail -1 | cut -d: -f2 - | cut -c2-) REPLACE_ME_PASSWORD=$(pass REPLACE_ME/user | head -1) download_REPLACE_ME_courses --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements
```

## Test

M setup.cfg => setup.cfg +2 -2
@@ 1,5 1,5 @@
[metadata]
name = Download REPLACE_ME courses
name = download-REPLACE_ME-courses
version = 1.0.0
author = Thomas Ieong
author_email = th.ieong@free.fr


@@ 23,4 23,4 @@ install_requires =

[options.entry_points]
console_scripts =
    download_REPLACE_ME_course = download_course.download_course:main
    download-REPLACE_ME-courses = download_course.download_course:main