Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 1c29e0f

Browse files
committed
[dl] add File tip
1 parent 70c7b2d commit 1c29e0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/fgit.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import (
1313
"strings"
1414
)
1515

16-
var timestamp string
17-
var version string
16+
// For -X Arg
17+
var timestamp = "unknown"
18+
var version = "unknown"
1819

1920
func showVersion() {
2021
fmt.Println("Version:", version)
@@ -133,7 +134,7 @@ func main() {
133134
" fgit debug [URL<string>] [--help|-h]\n" +
134135
" fgit get [URL<string>] [Path<string>] [--help|-h]\n" +
135136
" fgit conv [Target<string>] [--help|-h]\n " +
136-
" If you wan to known more about extra-syntax, try to use --help")
137+
" If you want to known more about extra-syntax, try to use --help")
137138
os.Exit(0)
138139
}
139140

@@ -329,6 +330,7 @@ startDown:
329330
if newURL != url {
330331
fmt.Println("Redirect ->", newURL)
331332
}
333+
fmt.Println("File ->", fpath)
332334
fmt.Println("Downloading...")
333335
resp, err := http.Get(newURL)
334336
checkErr(err, "Http.Get create failed", 1)

0 commit comments

Comments
 (0)