Skip to content

Commit

Permalink
Change usage message
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuProg committed May 5, 2024
1 parent 26edd31 commit d6df708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Usage:
-t, --tweet TWEET_ID Single tweet id to download
-n, --nbr NBR Number of tweets to download
-i, --img Download images only
-g, --gif Download gifs only (need ffmpeg)
-g, --gif Download GIFs only (need ffmpeg)
-v, --video Download videos only
-a, --all Download images, gifs(need ffmpeg) and videos
-a, --all Download images, GIFs(need ffmpeg) and videos
-r, --retweet Download retweet too
-z, --url Print media url without download it
-R, --retweet-only Donwload only retweet
Expand Down
6 changes: 3 additions & 3 deletions twmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ func main() {
op.On("-t", "--tweet TWEET_ID", "Single tweet to download", &single)
op.On("-n", "--nbr NBR", "Number of tweets to download", &nbr)
op.On("-i", "--img", "Download images only", &imgs)
op.On("-g", "--gif", "Download GIFs only", &gifs)
op.On("-g", "--gif", "Download GIFs only (need ffmpeg)", &gifs)
op.On("-v", "--video", "Download videos only", &vidz)
op.On("-a", "--all", "Download images and videos", &all)
op.On("-a", "--all", "Download images, GIFs(need ffmpeg) and videos", &all)
op.On("-r", "--retweet", "Download retweet too", &retweet)
op.On("-z", "--url", "Print media url without download it", &urlOnly)
op.On("-R", "--retweet-only", "Download only retweet", &onlyrtw)
Expand Down Expand Up @@ -526,7 +526,7 @@ func main() {
gifs = true
}
if !vidz && !imgs && !gifs && single == "" {
fmt.Println("You must specify what to download. (-i --img) for images, (-g --gif) for gifs, (-v --video) for videos or (-a --all) for both")
fmt.Println("You must specify what to download. (-i --img) for images, (-g --gif) for GIFs, (-v --video) for videos or (-a --all) for both")
op.Help()
os.Exit(1)
}
Expand Down

0 comments on commit d6df708

Please sign in to comment.