small change

Commit c871e4d2a063 · konakona · 2026-11-05 14:37 +0700

Changeset
c871e4d2a063be731268605cb4af850e3764f6cd

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/dl.go b/dl.go
--- a/dl.go
+++ b/dl.go
@@ -7,8 +7,8 @@
 
 func main() {
 	if len(os.Args) < 2 {
-		fmt.Println("Use the correct syntax: dl <URL>")
-		fmt.Println("Example: dl https://example.com/file.tar.xz")
+		fmt.Println("Pls type: dl <URL>")
+		fmt.Println("Example: dl https://example.com/file")
 		os.Exit(1)
 	}
 
diff --git a/utils.go b/utils.go
--- a/utils.go
+++ b/utils.go
@@ -19,9 +19,9 @@
 
 	if pw.Total > 0 {
 		percentage := float64(pw.Written)
-		fmt.Printf("\r[Downloading] %d / %d bytes (%.2f%%)", pw.Written, pw.Total, percentage)
+		fmt.Printf("\rDownloading: %d / %d bytes (%.2f%%)", pw.Written, pw.Total, percentage)
 	} else {
-		fmt.Printf("\r[Downloading] %d bytes downloaded", pw.Written)
+		fmt.Printf("\rDownloading: %d bytes downloaded", pw.Written)
 	}
 
 return n, err