Skip to content

Commit

Permalink
fix: add default download path.
Browse files Browse the repository at this point in the history
  • Loading branch information
syhily committed Nov 15, 2022
1 parent ea7150f commit 069b683
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions internal/argument/arguments.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package argument

import (
"os"

"github.com/bookstairs/bookhunter/internal/client"
"github.com/bookstairs/bookhunter/internal/fetcher"
)
Expand Down Expand Up @@ -28,12 +30,12 @@ var (
string(fetcher.PDF),
string(fetcher.ZIP),
}
Extract = false
DownloadPath = ""
InitialBookID = int64(1)
Rename = false
Thread = 1
RateLimit = 30
Extract = false
DownloadPath, _ = os.Getwd()
InitialBookID = int64(1)
Rename = false
Thread = 1
RateLimit = 30

// Drive ISP configurations.

Expand Down

0 comments on commit 069b683

Please sign in to comment.