potatoeggy / mandown

Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter
GNU Affero General Public License v3.0
51 stars 7 forks source link

Split arguments into subcommands #16

Closed potatoeggy closed 2 years ago

potatoeggy commented 2 years ago

Mandown has grown significantly in features since its first release. The addition of image processing and ebook conversion means that the command option namespace is polluted and convoluted.

To resolve this, the CLI should be split into the main three categories:

Download: this is the primary function of Mandown. It is primarily used for downloading but also allows for processing and converting all-in-one.

mandown download <URL> <DEST> --convert --threads --start --end --process

Process: Apply processing to images.

mandown process  <FOLDER_PATHS> --threads --option <OPTION1> --option <OPTION2>

Convert: Convert folders without downloading to EPUB/CBZ.

mandown convert <FORMAT> <FOLDER_PATH> --fetch-metadata --threads