-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #7 encoding issues with chapters add -f (--from-chapter) option to start downloading from specific chapter
- Loading branch information
Aivean
committed
Jul 23, 2018
1 parent
7f3bb54
commit ed04324
Showing
3 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name := "royalroadl-downloader" | ||
|
||
version := "1.2.5" | ||
version := "1.3.0" | ||
|
||
scalaVersion := "2.11.11" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,6 @@ package com.aivean.royalroad | |
|
||
import org.rogach.scallop._; | ||
|
||
/** | ||
* | ||
* @author <a href="mailto:[email protected]">Ivan Zaytsev</a> | ||
* 2016-06-19 | ||
*/ | ||
class Args(args: Seq[String]) extends ScallopConf(args) { | ||
|
||
banner( | ||
|
@@ -19,6 +14,12 @@ class Args(args: Seq[String]) extends ScallopConf(args) { | |
|Options: | ||
| """.stripMargin) | ||
|
||
val fromChapter = opt[Int]( | ||
descr = "Start download from chapter #", | ||
default = Some(0), | ||
validate = _ >= 1 | ||
) | ||
|
||
val titleQuery = opt[String]( | ||
descr = "CSS selector for chapter title (text of the found element is used)", | ||
default = Some("title") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters