Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Made query an option so that it supports prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
acgonzales committed Apr 21, 2020
1 parent 4fa494f commit d853822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def cli():


@cli.command()
@click.argument("query", type=types.STRING)
@click.option("-q", "--query", type=types.STRING, prompt="Please input the title of your desired comics.")
@click.option("-o", "--output-format", type=types.Choice([CBZ, PDF, IMG]), default=CBZ, help="The file format of the downloaded comics.")
@click.option("-d", "--download-dir", type=types.Path(exists=False, resolve_path=True, file_okay=False, dir_okay=True), prompt=True, help="Download directory.")
@click.option("-d", "--download-dir", type=types.Path(exists=False, resolve_path=True, file_okay=False, dir_okay=True), prompt="Where do you want to save the downloaded comics? (Path)", help="Download directory.")
@click.option("--delete-original", is_flag=True, default=True, help="Set to false if you want to keep the images before it was converted.")
@click.option("-t", "--threads", type=types.INT, default=4, help="Number of threads to use while download a chapter.")
@click.option("--daemon", type=types.BOOL, default=True, help="Sets the daemon value of the threads.")
Expand Down

0 comments on commit d853822

Please sign in to comment.