~tieong/download-course

5a70a9c07b7cb45241f52840f9a4fa5b15985174 — Thomas Ieong 2 years ago ad2f128
Updated output dir argument, set promotion arg to required
1 files changed, 3 insertions(+), 2 deletions(-)

M download_course/utils/prompt.py
M download_course/utils/prompt.py => download_course/utils/prompt.py +3 -2
@@ 22,14 22,15 @@ def get_args() -> argparse.Namespace:
        '--promotion',
        action="store",
        help="The exact promotion name and year, ex: 'REPLACE_MEREPLACE_ME'",
        type=str
        type=str,
        required=True
    )
    # Output dir
    parser.add_argument(
        '-o',
        '--output-dir',
        action="store",
        help="Output dir, Default is current dir",
        help="Output dir, Default is user dir",
        default=pathlib.Path.home(),
        type=lambda p: pathlib.Path(p).expanduser().resolve()
    )