Fixed #5 & Fixed #9. Added --keys support for downloading a single bundle

This commit is contained in:
Eddy Hintze
2020-01-20 10:26:48 -05:00
parent 7b08f9638b
commit 7dde7f8459
5 changed files with 41 additions and 20 deletions

View File

@@ -71,6 +71,12 @@ def cli():
type=str, nargs='*',
help="Only download files with these extensions. Ex: -i pdf mobi",
)
parser_download.add_argument(
'-k', '--keys',
type=str, nargs='*',
help=("The purchase download key. Find in the url on the "
"products/bundle download page. Can set multiple"),
)
cli_args = parser.parse_args()
@@ -87,4 +93,5 @@ def cli():
ext_include=cli_args.include,
ext_exclude=cli_args.exclude,
platform_include=cli_args.platform,
purchase_keys=cli_args.keys,
)